/* Extracted from registration/login.html */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh; min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 20px;
    overflow-x: hidden;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    background: #1c2333;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

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

.promo-section {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.promo-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.promo-content {
    position: relative;
    z-index: 1;
    color: white;
    padding-top: 20px;
}

.promo-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 28px;
    animation: fadeInScale 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
}

.promo-subtitle {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.promo-features {
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 15px;
    transition: color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: default;
}

.promo-feature:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.promo-feature-icon {
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.promo-feature:hover .promo-feature-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.35);
}

.form-section {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1c2333;
}

.form-header {
    margin-bottom: 32px;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.form-subtitle {
    color: #94a3b8;
    font-size: 15px;
}

.form-field {
    margin-bottom: 20px;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.form-field:nth-child(1) { animation-delay: 0.3s; }
.form-field:nth-child(2) { animation-delay: 0.4s; }

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-field input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #1c2333;
}

.form-field input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.social-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s both;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-divider span {
    padding: 0 16px;
    color: #94a3b8;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 12px;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

.btn-social {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    background: #1c2333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.btn-social:hover {
    border-color: #0ea5e9;
    background: #1c2333;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #94a3b8;
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
}

.form-footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.error-message {
    background: #450a0a;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    border-left: 4px solid #ef4444;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 30px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #0ea5e9;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    display: block;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.form-field {
    position: relative;
}

/* Dark mode styles */
.dark-mode .auth-container {
    background: #1e293b;
}

.dark-mode .form-section {
    background: #0f172a;
}

.dark-mode .form-title {
    color: #e2e8f0;
}

.dark-mode .form-subtitle {
    color: #94a3b8;
}

.dark-mode .form-field label {
    color: #cbd5e1;
}

.dark-mode .form-field input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .form-field input:focus {
    border-color: #0ea5e9;
    background: #0f172a;
}

.dark-mode .password-toggle {
    background: transparent;
    color: #94a3b8;
}

.dark-mode .password-toggle:hover {
    background: #1e293b;
    color: #0ea5e9;
}

.dark-mode .social-buttons .btn-social {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.dark-mode .social-buttons .btn-social:hover {
    background: #0f172a;
}

.dark-mode .form-footer {
    color: #94a3b8;
}

/* Home Link */
.home-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .home-link {
    background: rgba(15, 23, 42, 0.9);
    border-color: #334155;
    color: #e2e8f0;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dark-mode .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-color: #334155;
    color: #e2e8f0;
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .promo-section {
        display: none;
    }
}
