/* AdScene authentication pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #050505;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 10% 0%, rgba(218, 32, 39, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(218, 32, 39, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.auth-box {
    background: rgba(12, 12, 12, 0.92);
    border: 1px solid rgba(218, 32, 39, 0.28);
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.auth-logo {
    display: block;
    height: 48px;
    width: auto;
    margin: 0 auto 28px;
}

.auth-box h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: -0.03em;
}

.auth-box h2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 32px;
    text-align: center;
    color: #b3b3b3;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-box input[type="text"],
.auth-box input[type="email"],
.auth-box input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.auth-box input:focus {
    outline: none;
    border-color: #da2027;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(218, 32, 39, 0.14);
}

.auth-box input::placeholder {
    color: #6b6b6b;
}

.auth-box button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #da2027, #a8181e);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.auth-box button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(218, 32, 39, 0.4);
}

.auth-box button[type="submit"]:active {
    transform: translateY(0);
}

.auth-box button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-box p {
    text-align: center;
    margin-top: 24px;
    color: #b3b3b3;
    font-size: 14px;
}

.auth-box p a {
    color: #da2027;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-box p a:hover {
    color: #f03a40;
}

#message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

#message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

#message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

#message.info {
    background: rgba(218, 32, 39, 0.12);
    border: 1px solid rgba(218, 32, 39, 0.3);
    color: #ffb3b5;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #da2027;
}

.auth-checkbox label {
    color: #b3b3b3;
    font-size: 14px;
    cursor: pointer;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}

.password-strength-bar.weak {
    width: 33%;
    background: #ef4444;
}

.password-strength-bar.medium {
    width: 66%;
    background: #f59e0b;
}

.password-strength-bar.strong {
    width: 100%;
    background: #10b981;
}

@media (max-width: 480px) {
    .auth-box {
        padding: 32px 24px;
    }

    .auth-box h1 {
        font-size: 24px;
    }

    .auth-box h2 {
        font-size: 15px;
    }

    .auth-box input {
        padding: 14px 16px;
        font-size: 16px;
    }

    .auth-box button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

.text-muted { color: #b3b3b3; }
.text-primary { color: #da2027; }
.text-success { color: #10b981; }
.text-error { color: #ef4444; }

.hidden {
    display: none !important;
}
