/* Navigaate Split Login/Sign-up Page Styles */

:root {
    --bg-dark: #0a1128;
    --bg-dark-deep: #060b19;
    --primary-yellow: #ffb800;
    --primary-yellow-hover: #e6a600;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --text-dark: #0f172a;
    --border-color: #e2e8f0;
    --coral-red: #f43f5e;
    --coral-red-hover: #e11d48;
    
    --font-main: 'Source Sans Pro', 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Montserrat', var(--font-main);
}

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

body {
    font-family: var(--font-main);
    background-color: #ffffff;
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow-x: hidden;
}

/* Outer layout */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: stretch;
}

/* Left panel: Branding and Illustration */
.left-panel {
    background: radial-gradient(circle at 40% 40%, #152550 0%, var(--bg-dark-deep) 100%);
    color: var(--text-white);
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
}

/* Hide scrollbar for Left Panel */
.left-panel::-webkit-scrollbar {
    display: none;
}
.left-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.left-panel-content {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.branding-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    width: fit-content;
}

.logo-circle {
    width: 32px;
    height: 32px;
    background-color: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-circle svg {
    color: var(--bg-dark);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.branding-text h1 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.branding-text p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-top: 16px;
}

/* List of key value props */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow);
    flex-shrink: 0;
}

.feature-text {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
}

/* 3D Illustration Container */
.illustration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 24px;
    position: relative;
}

.illustration-img {
    max-width: 85%;
    max-height: 380px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Right Panel: Login / Sign Up Forms */
.right-panel {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 80px;
    overflow-y: auto;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 28px;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.5;
}

/* Tab selector */
.tab-container {
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 5px;
    display: flex;
    margin-bottom: 36px;
    position: relative;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 11px;
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    text-align: center;
}

.tab-btn.active {
    color: var(--text-dark);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Interactive form views container */
.forms-views {
    position: relative;
    width: 100%;
    overflow: visible;
}

.form-view {
    display: none;
    opacity: 0;
}

.form-view.active {
    display: block;
    opacity: 1;
    animation: formFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Form inputs styling */
.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    font-family: var(--font-main);
}

.input-container {
    position: relative;
    width: 100%;
}

.input-field {
    width: 100%;
    padding: 13px 16px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.input-field::placeholder {
    color: #94a3b8;
}

.input-field:focus {
    border-color: #cbd5e1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 17, 40, 0.05);
}

/* Custom dropdown styled */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    display: flex;
    align-items: center;
}

/* Eye icon for password show/hide */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #475569;
}

/* Remember me & Forgot Password spacing */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 0 32px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

/* Custom checkbox aesthetics */
.custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.2s ease;
}

.checkbox-label input {
    display: none;
}

.checkbox-label input:checked + .custom-checkbox {
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);
    color: #ffffff;
}

.forgot-password-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--coral-red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: var(--coral-red-hover);
    text-decoration: underline;
}

/* Submit buttons */
.btn-submit {
    width: 100%;
    padding: 13px;
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(10, 17, 40, 0.15);
}

.btn-submit:hover {
    background-color: #1e293b;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(10, 17, 40, 0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider "Or" */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin: 24px 0;
    font-weight: 500;
}

.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1.5px solid #e2e8f0;
}

.divider span {
    padding: 0 12px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-social:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-social svg {
    flex-shrink: 0;
}

/* Multi-step form grid and back link styling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.back-link-container {
    text-align: center;
    margin-top: 24px;
}

.back-link {
    font-size: 14.5px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* OTP inputs wrapper styling */
.otp-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 28px 0 16px 0;
}

.otp-input {
    width: 100%;
    max-width: 54px;
    height: 52px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
    outline: none;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: #cbd5e1;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(10, 17, 40, 0.05);
}

.otp-meta {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 28px;
    font-family: var(--font-main);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.branding-logo, .branding-text, .features-list, .illustration-container {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.branding-text { animation-delay: 0.1s; }
.features-list { animation-delay: 0.2s; }
.illustration-container { animation-delay: 0.3s; }

.form-wrapper {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    
    .left-panel {
        display: none; /* Hide left panel on tablets & mobiles to prioritize form */
    }
    
    .right-panel {
        padding: 60px 24px;
    }
}

@media (max-width: 640px) {
    .form-header h2 {
        font-size: 26px;
    }
    
    .right-panel {
        padding: 40px 16px;
    }
}

/* Real-time Field Errors styling */
.field-error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-family: var(--font-main);
    animation: fadeInError 0.2s ease-in-out forwards;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-field.is-invalid {
    border-color: #fca5a5 !important;
    background-color: #fef2f2 !important;
}

.input-field.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
}

