

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
}
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-card: #ffffff;
    --bg-hover: rgba(0, 0, 0, 0.04);

    --text-primary: #111111;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    --accent-purple: #111111;
    --accent-purple-light: #374151;
    --accent-purple-dark: #000000;
    --accent-pink: #6b7280;
    --accent-blue: #9ca3af;
    --accent-gradient: #111111;
    --accent-gradient-hover: #374151;

    --success: #111111;
    --error: #dc2626;
    --warning: #f59e0b;

    --border-color: #e5e5e5;
    --border-color-hover: #d1d5db;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-glow: none;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

.brand-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    border-right: 1px solid var(--border-color);
}

.animated-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    pointer-events: none;
    display: none;
}

.gradient-orb {
    display: none;
}

.brand-content { position:relative; z-index:2; max-width:480px; }

.logo-mark {
    margin-bottom: 48px;
    animation: slideInLeft 0.8s ease;
}

.logo-mark .logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.logo-mark .logo-img {
    height: 56px;
    width: auto;
    margin-top: -51px;
    margin-right: -28px;
    display: block;
    flex-shrink: 0;
}

.logo-mark .logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.8rem;
    color: #111111;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background: none;
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #111111;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background: none;
    animation: slideInLeft 0.8s ease 0.1s both;
}

.brand-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 48px;
    animation: slideInLeft 0.8s ease 0.2s both;
}

.feature-list { 
    display:flex; 
    flex-direction:column; 
    gap:12px; 
    animation:slideInLeft 0.8s ease 0.3s both; 
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    cursor: default;
}

.feature-item:hover { 
    background: var(--bg-hover); 
    border-color: var(--border-color-hover); 
    transform: translateX(4px); 
    box-shadow: var(--shadow-sm); 
}

.feature-icon {
    width: 32px; 
    height: 32px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: #111111;
    border-radius: 8px; 
    color: #ffffff;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.feature-item:hover .feature-icon { 
    transform: scale(1.05); 
}

.feature-item span { 
    font-size: 15px; 
    font-weight: 500; 
    color: var(--text-primary); 
}

.brand-footer { 
    position:absolute; 
    bottom:40px; 
    left:60px; 
    color: var(--text-muted); 
    font-size:13px; 
    z-index:2; 
}
.form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-image: none;
    pointer-events: none;
}

.form-wrapper { 
    width: 100%; 
    max-width: 440px; 
    position: relative; 
    z-index: 1; 
}

.mobile-logo { 
    display: none; 
    text-align: center; 
    margin-bottom: 32px; 
}

.mobile-logo .logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    justify-content: center;
}

.mobile-logo .logo-img {
    height: 42px;
    width: auto;
    margin-top: -33px;
    margin-right: -21px;
    display: block;
    flex-shrink: 0;
}

.mobile-logo .logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 2.2rem;
    color: #111111;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background: none;
    letter-spacing: 0.02em;
}

.login-card {
    background: var(--bg-card);
    backdrop-filter: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease;
}

.login-header { 
    text-align: center; 
    margin-bottom: 32px; 
}

.login-header h1 { 
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px; 
    font-weight: 600; 
    margin-bottom: 10px; 
    letter-spacing: -0.5px; 
    color: #111111;
}

.login-header p { 
    color: var(--text-secondary); 
    font-size: 15px; 
    line-height: 1.5; 
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 20px;
    background: #ffffff;
    color: #374151;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    letter-spacing: 0;
}

.google-btn:hover {
    background: #f8f8f8;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    border-color: var(--border-color-hover);
}

.google-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    position: relative;
}

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

.divider span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.login-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

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

.form-group label {
    font-size: 13px; 
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-left: 4px;
}

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

.input-icon {
    position: absolute; 
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--transition-fast);
    z-index: 2;
}

.form-group input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 16px 14px 48px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
}

.form-group input:focus {
    border-color: #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
    background: #ffffff;
}

.form-group input:focus + .input-icon,
.input-wrapper:focus-within .input-icon { 
    color: #111111; 
}

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

.form-group input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.error-message { 
    font-size: 13px; 
    color: var(--error); 
    min-height: 20px; 
    margin-left: 4px; 
    font-weight: 500; 
}

.toggle-password {
    position: absolute; 
    right: 12px; 
    top: 50%; 
    transform: translateY(-50%);
    background: none; 
    border: none; 
    color: var(--text-muted);
    cursor: pointer; 
    padding: 6px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: all var(--transition-fast);
    border-radius: 6px; 
    z-index: 2;
}

.toggle-password:hover { 
    color: var(--text-primary); 
    background: var(--bg-hover); 
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 14px;
    margin-top: -4px;
}

.forgot-password {
    color: var(--text-secondary); 
    text-decoration: none;
    font-weight: 500; 
    transition: all var(--transition-fast);
    position: relative;
    font-size: 13px;
}

.forgot-password::after {
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0;
    width: 0; 
    height: 1px;
    background: #111111;
    transition: width var(--transition-normal);
}

.forgot-password:hover { 
    color: #111111; 
}

.forgot-password:hover::after { 
    width: 100%; 
}

.login-btn {
    background: #111111;
    border: none; 
    color: #ffffff;
    padding: 15px 24px;
    border-radius: var(--radius-md);
    font-size: 15px; 
    font-weight: 600;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
    transition: all var(--transition-normal);
    position: relative; 
    overflow: hidden;
    margin-top: 4px;
    box-shadow: var(--shadow-sm);
}

.login-btn::before {
    content: ''; 
    position: absolute;
    top: 0; 
    left: -100%; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s;
}

.login-btn:hover:not(:disabled) { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); 
}

.login-btn:hover:not(:disabled)::before { 
    left: 100%; 
}

.login-btn:active:not(:disabled) { 
    transform: translateY(0); 
}

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

.btn-loader svg { 
    animation: spin 1s linear infinite; 
}

.login-btn.loading .btn-text { 
    opacity: 0; 
}

.login-btn.loading .btn-loader {
    display: flex !important;
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%);
}

.signup-link {
    text-align: center; 
    font-size: 14px;
    color: var(--text-secondary); 
    font-weight: 500;
    margin-top: 4px;
}

.signup-link a {
    color: #111111; 
    text-decoration: none;
    font-weight: 600; 
    transition: all var(--transition-fast);
    position: relative;
}

.signup-link a::after {
    content: ''; 
    position: absolute; 
    bottom: -2px; 
    left: 0;
    width: 0; 
    height: 1px;
    background: #111111;
    transition: width var(--transition-normal);
}

.signup-link a:hover { 
    color: #374151; 
}

.signup-link a:hover::after { 
    width: 100%; 
}

.back-link {
    margin-top: 28px; 
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.back-link a {
    color: var(--text-secondary); 
    text-decoration: none;
    font-size: 14px;
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    transition: all var(--transition-fast);
    font-weight: 500; 
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.back-link a:hover { 
    color: var(--text-primary); 
    background: var(--bg-hover); 
    transform: translateX(-4px); 
}

.toast {
    position: fixed; 
    bottom: 24px; 
    right: 24px;
    background: var(--error); 
    color: white;
    padding: 16px 24px; 
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px; 
    font-weight: 600;
    opacity: 0; 
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-normal);
    z-index: 1000; 
    max-width: 400px;
    display: flex; 
    align-items: center; 
    gap: 12px;
}

.toast.show { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
}

.toast.success { 
    background: #111111; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); 
}

.toast.info { 
    background: #374151; 
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); 
}

.toast::before { 
    content: '⚠'; 
    font-size: 18px; 
}

.toast.success::before { 
    content: '✓'; 
}

.toast.info::before { 
    content: 'ℹ'; 
}

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

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

@keyframes float {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(30px, -30px) scale(1.1); 
    }
    66% { 
        transform: translate(-20px, 20px) scale(0.9); 
    }
}

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

@media (max-width: 968px) {
    .split-container { 
        grid-template-columns: 1fr; 
    }
    .brand-section { 
        display: none; 
    }
    .form-section { 
        padding: 24px; 
        align-items: flex-start; 
        padding-top: 60px; 
    }
    .mobile-logo { 
        display: block; 
        animation: fadeInUp 0.6s ease; 
    }
    .login-card { 
        padding: 32px 24px; 
        border-radius: var(--radius-lg); 
    }
    .login-header h1 { 
        font-size: 32px; 
    }
    .form-wrapper { 
        max-width: 100%; 
    }
}

@media (max-width: 480px) {
    .form-section { 
        padding: 20px; 
        padding-top: 40px; 
    }
    .login-card { 
        padding: 28px 20px; 
        background: #ffffff; 
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    .login-header h1 { 
        font-size: 28px; 
    }
    .form-options { 
        flex-direction: column; 
        gap: 16px; 
        align-items: flex-start; 
    }
    .toast { 
        left: 20px; 
        right: 20px; 
        bottom: 20px; 
        max-width: none; 
    }
    .google-btn { 
        font-size: 14px; 
        padding: 12px 16px; 
    }
}

@media (prefers-reduced-motion: reduce) {
    * { 
        animation-duration: 0.01ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.01ms !important; 
    }
}

*:focus-visible { 
    outline: 2px solid #111111; 
    outline-offset: 2px; 
}

button:focus-visible, 
input:focus-visible { 
    outline: none; 
}