@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-light: #f8fafc;
    --error-color: #ef4444;
    --success-color: #10b981;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0f2fe 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bps-logo,
.se2026-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-item:hover .bps-logo,
.logo-item:hover .se2026-logo {
    transform: scale(1.05);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.auth-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.75rem auto 1rem;
    border-radius: 2px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
    background: #fef2f2;
}

.form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.valid {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.form-input.valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 0.375rem;
}

.password-toggle:hover {
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.error-message {
    display: none;
    font-size: 0.8rem;
    color: var(--error-color);
    margin-top: 0.375rem;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.loading-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.footer-link {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Dark mode support - only when explicitly enabled with .dark class */
.dark body {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

.dark .auth-container {
    background: #1f2937;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dark .auth-title {
    color: #f9fafb;
}

.dark .auth-subtitle {
    color: #d1d5db;
}

.dark .form-label {
    color: #e5e7eb;
}

.dark .form-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark .form-input:focus {
    background: #1f2937;
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
}

.dark .form-input.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

.dark .form-input.valid {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.dark .password-toggle {
    color: #d1d5db;
}

.dark .password-toggle:hover {
    color: #f3f4f6;
    background-color: rgba(255, 255, 255, 0.1);
}

.dark .password-toggle:focus {
    outline-color: #60a5fa;
}

.dark .footer-link {
    color: #9ca3af;
}

.dark .footer-link a {
    color: #60a5fa;
}

.dark .footer-link a:hover {
    color: #3b82f6;
}

.dark .auth-footer {
    border-top-color: #4b5563;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
        border-radius: 1.25rem;
    }

    .logo-container {
        gap: 1.5rem;
    }

    .bps-logo,
    .se2026-logo {
        width: 120px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .form-input {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .logo-container {
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .bps-logo,
    .se2026-logo {
        width: 100px;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .auth-subtitle {
        font-size: 0.85rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-input {
        padding: 0.7rem 0.75rem;
        font-size: 0.85rem;
    }

    .submit-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .auth-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }

    .footer-link {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

