/* Dark glassmorphism design system */
:root {
    --bg-color: #0b0c10;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-color: #66fcf1;
    --text-color: #c5c6c7;
    --text-title: #ffffff;
    --error-color: #ff4a4a;
    --success-color: #4aff71;
    --weak-color: #ff4a4a;
    --fair-color: #ffa500;
    --good-color: #ffff00;
    --strong-color: #4aff71;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(102, 252, 241, 0.08), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(102, 252, 241, 0.05), transparent 25%);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

h1 {
    color: var(--text-title);
    text-align: center;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 0.9rem;
    color: var(--text-color);
}

input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 252, 241, 0.2);
}

button {
    background: var(--primary-color);
    color: #0b0c10;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin-top: 10px;
}

button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

button:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
    color: #888;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    display: block;
    margin-top: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link:disabled {
    color: #666;
    text-decoration: none;
    cursor: not-allowed;
}

.error-msg {
    color: var(--error-color);
    font-size: 0.85rem;
    display: none;
}

.success-msg {
    color: var(--success-color);
    font-size: 0.85rem;
    display: none;
}

/* Password Strength */
.password-strength {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.strength-bar {
    height: 4px;
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.strength-text {
    font-size: 0.8rem;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

/* OTP Boxes */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 20px 0;
}

.otp-box {
    width: 45px;
    height: 55px;
    font-size: 1.5rem;
    text-align: center;
    padding: 0;
}

/* Countdown */
.countdown {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-color);
}
