/* ============================
   Auth Pages (Login / Register)
   ============================ */

.auth-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: rgba(15, 20, 35, 0.7);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 44px 40px;
    box-shadow:
        var(--shadow-card),
        0 0 80px -20px rgba(99, 102, 241, 0.1);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    margin-bottom: 20px;
}

.auth-logo .logo-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
}

.auth-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    transition: all var(--transition);
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-with-btn {
    gap: 0;
}

.input-with-btn input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-btn {
    padding: 12px 16px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid var(--accent);
    background: var(--accent-glow);
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
}

.input-btn:hover {
    background: rgba(99, 102, 241, 0.25);
}

.input-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.toggle-password:hover {
    color: var(--text-secondary);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    color: var(--accent);
    transition: color var(--transition);
}

.forgot-link:hover {
    color: var(--accent-light);
}

/* Submit Button */
.btn-auth {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    color: #fff;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    letter-spacing: 4px;
}

.btn-auth:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 28px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.auth-divider span {
    position: relative;
    padding: 0 16px;
    background: #0f1423;
    color: var(--text-muted);
    font-size: 13px;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    gap: 12px;
}

.oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--transition);
}

.oauth-btn:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.oauth-btn svg {
    flex-shrink: 0;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-light);
}

/* Message */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.auth-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.auth-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 22px;
    }
}