/* Authentication forms (login/register) styles */
/* Background: #0A0A0A
Panels: #282828
Borders: #484745
Text: #E5E3E4
Accent: #B9B1B2
Highlight: #F0E6A0 */

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: #0A0A0A;
    padding: var(--spacing-md);
    padding-top: 6vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 30%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 140, 141, 0.18) 0%, transparent 70%);
    animation: radioPulse1 4s ease-in-out infinite;
    pointer-events: none;
    transform: translate(-50%, -50%);
    clip-path: circle(50%);
}

body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 70%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 177, 178, 0.15) 0%, transparent 70%);
    animation: radioPulse2 5s ease-in-out infinite 1s;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    clip-path: circle(50%);
}

.auth-header {
    text-align: center;
    margin-bottom: 50px;
    z-index: 1;
    width: 100%;
}

.auth-header h1 {
    color: var(--brand-color);
    font-size: 48px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-logo {
    height: 76px;
    display: block;
}

.auth-header p {
    color: #B9B1B2;
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: lowercase;
    margin: 0;
    opacity: 0.9;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes radioPulse1 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

@keyframes radioPulse2 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.2;
    }
}

.box {
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-primary);
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(240, 230, 160, 0.1),
                inset 0 1px 0 rgba(240, 230, 160, 0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #B9B1B2 0%, #676153 50%, #484745 100%);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.box:hover::before {
    opacity: 0.15;
}

.box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(185, 177, 178, 0.2),
                inset 0 1px 0 rgba(185, 177, 178, 0.15);
}

.box h2 {
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 20px;
    font-weight: 600;
}

.box form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.box input {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.box input:focus {
    outline: none;
    border-color: #B9B1B2;
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 0 0 3px rgba(185, 177, 178, 0.1),
                inset 0 1px 3px rgba(185, 177, 178, 0.1);
    transform: translateY(-1px);
}

.box input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.box button {
    width: 100%;
    padding: var(--spacing-md);
    background: #484745;
    border: 2px solid var(--brand-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    margin-top: var(--spacing-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.box button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 140, 141, 0.3), transparent);
    transition: left 0.5s ease;
}

.box button:hover::before {
    left: 100%;
}

.box button:hover {
    background: #484745;
    color: var(--text-primary);
    border-color: var(--brand-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 140, 141, 0.5),
                0 0 30px rgba(0, 140, 141, 0.3),
                inset 0 1px 0 rgba(0, 140, 141, 0.2);
}

.box button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 140, 141, 0.3);
}

.error {
    color: var(--status-danger);
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid var(--status-danger);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
    font-size: 14px;
}

.link {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-primary);
    color: var(--text-secondary);
    font-size: 14px;
}

.link a {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.link a:hover {
    color: #676153;
    text-decoration: underline;
}

/* Password visibility toggle */
.password-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 45px !important;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 20px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    z-index: 10;
    pointer-events: auto;
}

.toggle-password:hover {
    opacity: 1;
}

/* Remember Me checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin: 4px 0;
}

.remember-me label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    user-select: none;
    white-space: nowrap;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
    cursor: pointer;
    accent-color: var(--brand-color);
    flex-shrink: 0;
}

.remember-me span {
    transition: color 0.2s ease;
}

.remember-me label:hover span {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-header h1 {
        font-size: 36px;
    }

    .auth-logo {
        height: 58px;
    }

    .auth-header p {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--spacing-sm);
    }

    .auth-header {
        margin-bottom: var(--spacing-lg);
    }

    .auth-header h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .auth-logo {
        height: 41px;
    }

    .auth-header p {
        font-size: 11px;
    }

    .box {
        padding: var(--spacing-lg);
        max-width: 100%;
        margin-top: 20px;
    }

    .box h2 {
        font-size: 18px;
    }

    .box input,
    .box button {
        padding: 12px;
        font-size: 14px;
    }

    .password-container input {
        padding-right: 45px !important;
    }

    .toggle-password {
        right: 12px;
        font-size: 18px;
    }

    .remember-me label {
        font-size: 13px;
    }
}