/* Split-screen Login Layout */
.login-page {
    min-height: 100vh;
    background: #f3f4f6;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 1180px;
    height: 72vh;
    max-height: 640px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.96fr 1.04fr;
}

/* Remove height restrictions on mobile */
@media (max-width: 768px) {
    .login-container {
        height: auto !important;
        max-height: none !important;
        min-height: 100vh !important;
    }
}

/* Desktop-specific sizing so the card isn't too tall */
@media (min-width: 961px) {
    .login-visual,
    .login-panel {
        height: 100%;
    }
}

/* Left visual panel */
.login-visual {
    position: relative;
    background: radial-gradient(circle at top, #1d4ed8, #020617 55%);
    color: #e5e7eb;
    overflow: hidden;
}

.login-visual-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.login-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.05) contrast(1.03);
}

.login-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.85) 0%, rgba(17, 24, 39, 0.8) 35%, rgba(30, 64, 175, 0.9) 100%),
        radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.55), transparent 55%);
    mix-blend-mode: multiply;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 28px 28px 28px;
}

.login-visual-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-logo-white {
    height: 28px;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.6));
}

.login-visual-copy {
    max-width: 520px;
    margin-top: auto;
}

.login-eyebrow {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(191, 219, 254, 0.9);
    margin-bottom: 12px;
}

.login-hero-text {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 600;
    color: #f9fafb;
}

.get-started-btn {
	display: none !important;
}

/* Show get-started button only on mobile */
@media (max-width: 768px) {
	.get-started-btn {
		display: inline-flex !important;
	}
}

/* Right panel */
.login-panel {
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-panel-inner {
    width: 100%;
    max-width: 540px;
    padding: 28px 48px 32px 48px;
    overflow-y: auto;
    max-height: 100%;
}

.login-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.login-logo-blue {
    height: 32px;
}

.login-heading-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-heading-text p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Inputs with icons */
.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.input-with-icon .form-control {
    padding-left: 44px;
}

.password-field .form-control {
    padding-right: 60px;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
    transform: translateY(-50%) translateY(-1px);
}

.toggle-password:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 999px;
}

/* Refined inputs */
.login-panel-inner .form-group {
    margin-bottom: 20px;
}

.login-panel-inner .form-group:last-of-type {
    margin-bottom: 32px;
}

.login-panel-inner label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-panel-inner .form-control {
    height: 54px;
    border-radius: 10px;
    border: 2px solid rgba(226, 232, 240, 0.9);
    background-color: #ffffff;
    box-shadow: none;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-panel-inner .form-control::placeholder {
    color: rgba(107, 114, 128, 0.6);
}

.login-panel-inner .form-control:hover {
    border-color: rgba(148, 163, 184, 0.8);
}

.login-panel-inner .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
    background: #ffffff;
}

/* Primary button refinements */
.login-page .btn-primary {
    width: 100%;
    height: 54px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    box-shadow: 
        0 1px 3px rgba(79, 70, 229, 0.4),
        0 1px 2px rgba(79, 70, 229, 0.24);
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-page .btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338CA, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px rgba(79, 70, 229, 0.4),
        0 3px 6px rgba(79, 70, 229, 0.24);
}

.login-page .btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.login-page .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-page .btn-primary span {
    font-weight: 600;
}

/* Form meta and footer text */
.login-form-meta {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #4338CA;
    text-decoration: underline;
}

.login-panel-inner .message {
    margin-top: 8px;
    margin-bottom: 20px;
}

.login-terms {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

.login-terms a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-terms a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 960px) {
    .login-container {
        max-width: 720px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    }

    .login-visual-content {
        padding: 24px 24px 26px 24px;
    }

    .login-panel-inner {
        padding: 32px 32px;
        margin-top: 0;
    }
}

@media (max-width: 720px) {
    .login-page {
        padding: 0;
        overflow-x: hidden;
        min-height: 100vh;
    }

    .login-container {
        max-width: 100%;
        width: 100%;
        min-height: 100vh;
        display: block;
        border-radius: 0;
        height: auto !important;
        max-height: none !important;
    }

    .login-visual {
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .login-visual-content {
        min-height: auto;
        padding: 40px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .login-visual-header {
        justify-content: center;
        width: 100%;
        margin-bottom: 32px;
        position: relative;
    }

    .login-logo-white {
        height: 48px;
    }

    .login-visual-copy {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        text-align: center;
    }

    .login-visual-copy h2 {
        text-align: center;
    }

    .login-visual-copy .collector-badge {
        display: block;
        width: fit-content;
        margin: 0 auto 20px auto;
    }

    .login-eyebrow {
        font-size: 0.9rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .login-hero-text {
        font-size: 2rem;
        line-height: 1.3;
        text-align: center;
    }

    .get-started-btn {
        display: block;
        position: relative;
        width: 100%;
        max-width: 320px;
        margin: 32px auto 0;
        height: 52px;
        border-radius: 999px;
        z-index: 20;
    }

    .login-panel-inner {
        max-width: 100%;
        padding: 24px 20px 80px 20px;
        margin: 0 auto;
        min-height: auto;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .login-panel-inner .login-header,
    .login-panel-inner form,
    .login-panel-inner .login-footer {
        width: 100%;
        max-width: 400px;
    }

    .login-panel-inner .login-header {
        text-align: center;
    }

    .login-panel {
        display: none;
        min-height: 100vh;
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.show-login-panel {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    body.show-login-panel .login-visual {
        display: none;
    }

    body.show-login-panel .login-panel {
        display: flex;
        height: auto;
        min-height: 100vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-video {
        animation: none !important;
    }

    .login-page,
    .login-container,
    .btn,
    .form-control {
        transition: none !important;
    }
}
