@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* LOGIN PAGE STYLES */
body.login {
    background: url('http://blade.today/assets/images/background.jpeg') no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    position: relative;
    width: 500px;
    height: 500px;
    background: #0a0a0a;
    border-radius: 50%;
    overflow: hidden;
}

.container::before,
.container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 500px;
    height: 500px;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
}

.container::before {
    background: linear-gradient(90deg, transparent, #FF8200, #FF8200);
}
.container::after {
    background: linear-gradient(90deg, transparent, #FFFFFF, #FFFFFF);
    animation-delay: -3s;
}

@keyframes animate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

form {
    position: absolute;
    inset: 2px;
    background: #58595B;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    position: absolute;
    top: 25px;
    color: #d31580;
    font-size: 2.5rem;
    font-weight: 500;
}

.uc {
    position: absolute;
    top: 100px;
    width: 300px;
    border-top: 1px solid #0598f7;
    text-align: center;
}
.uc b {
    position: relative;
    top: -15px;
    width: 150px;
    height: 25px;
    color: #0598f7;
    background: #28292d;
    font-size: 16px;
    border: 1px solid #0598f7;
    border-radius: 50px;
    display: inline-block;
}

.inputBox {
    position: relative;
    width: 320px;
    margin-top: 35px;
}
.inputBox input {
    width: 100%;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    color: #26e060;
    background: transparent;
    border: 1px solid #87a4bd;
    letter-spacing: .05em;
    outline: none;
}
.inputBox label {
    position: absolute;
    left: 25px;
    top: 18px;
    color: #87a4bd;
    background: #28292d;
    padding: 0 2px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .07em;
    transform: translateY(-27px);
    transition: transform .3s ease;
    pointer-events: none;
}
input:invalid+label {
    transform: translateY(0);
}
input:focus {
    border-color: #26e060;
}
input:focus+label {
    background: #28292d;
    color: #26e060;
    transform: translateY(-27px);
}
input[type="submit"] {
    position: relative;
    top: 40px;
    width: 320px;
    background: linear-gradient(to bottom, #0598f7, #4d26b8);
    padding: 10px;
    border-radius: 60px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid #0598f7;
    outline: 3px solid #28292d;
    transition: all .3s ease-in-out;
}
input[type="submit"]:hover {
    letter-spacing: .05em;
    outline-offset: -6px;
}
.alert-danger {
    background: #ffcccc;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 10px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 500;
}

/* PROFILE PAGE STYLES */
body.profile {
    background-color: #1e1e1e;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
}

.profile-container {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background-color: #2c2c2c;
    border-radius: 10px;
}

.gallery-container {
    padding: 20px;
    margin-top: 20px;
}

.gallery-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    background-color: #333;
    padding: 10px;
    border-radius: 10px;
    width: calc(33.333% - 20px);
}

.gallery-item img {
    max-width: 100%;
    border-radius: 5px;
}

.comment-section {
    margin-top: 10px;
}

.comment {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.comment-content {
    background-color: #444;
    padding: 10px;
    border-radius: 8px;
}

.comment-username {
    font-weight: bold;
}

textarea {
    width: 100%;
    border-radius: 6px;
    padding: 8px;
    margin-top: 5px;
    background: #222;
    color: #f0f0f0;
}

button {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 5px;
}
