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

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338CA;
    --secondary-color: #6B7280;
    --bg-gradient-start: #EEF2FF;
    --bg-gradient-end: #C7D2FE;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1F2937;
    --text-sub: #4B5563;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    animation: slideUp 0.5s ease-out forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header h2 {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.divider:not(:empty)::before {
    margin-right: .5rem;
}

.divider:not(:empty)::after {
    margin-left: .5rem;
}

.btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.75rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border: 1px solid #D1D5DB;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

.error-message {
    background-color: var(--error-bg);
    color: var(--error-text);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1.5rem;
    border: 1px solid #FECACA;
}

.helper-text {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.75rem;
    color: #9CA3AF;
}

.required-mark {
    color: var(--error-text);
    margin-left: 4px;
}

/* Toggle Switch Styles */
.toggle-container {
    display: flex;
    background: #F3F4F6;
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    border: 1px solid #E5E7EB;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0.375rem;
    color: var(--secondary-color);
    transition: all 0.2s;
    user-select: none;
    position: relative;
    z-index: 1;
}

.toggle-option input {
    display: none;
}

.toggle-option.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Utilities for hiding elements */
.hidden {
    display: none;
}