/* Auth pages styling (login/register) */
:root {
    --auth-bg: linear-gradient(135deg, #f8fbff, #ffffff);
    --card-bg: #ffffff;
    --primary: #00d4ff;
    --accent: #6366f1;
    --muted: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --duration-fast: 150ms;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: var(--auth-bg);
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-card {
    width: 420px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    z-index: 1;
    transition: all var(--duration-fast) var(--ease);
}

.auth-card:hover {
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15);
    transform: translateY(-4px);
}

.auth-card h1 {
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
    color: #111827;
    font-weight: 700;
}

.auth-subtitle {
    color: var(--muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease));
    font-family: inherit; 
    color: #111827; 
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="email"]::placeholder,
.auth-form input[type="password"]::placeholder {
    color: #9ca3af;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 2.5rem !important;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    border: none;
    background: transparent;
    padding: 6px 8px;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--duration-fast) var(--ease));
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-input-wrapper .toggle-password:hover {
    color: var(--primary);
}

/* Form Group Checkbox */
.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-group.checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

/* Buttons */
.btn-block {
    display: block;
    width: 100%;
    padding: 0.95rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease));
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Messages/Alerts */
.messages {
    margin-top: 1.5rem;
    padding: 0;
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: #047857;
}

.alert-error,
.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #b91c1c;
}

.alert-warning {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    color: #92400e;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1e40af;
}

/* Auth Links */
.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease));
    display: inline-block;
}

.auth-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease));
}

.auth-footer a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        width: 100%;
        padding: 1.75rem;
        border-radius: 14px;
    }

    .auth-card h1 {
        font-size: 1.5rem;
    }

    .auth-form .form-group {
        margin-bottom: 1.25rem;
    }

    .btn-block {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    .auth-container {
        padding: 2rem 1rem;
    }
}
