
/* =========================================
   CVXSA LOGIN PAGE
   Bright Intelligence | Graphite & Copper
   ========================================= */

.login-page {
    min-height: 100vh;
    background: var(--background);
}

/* MAIN SPLIT-SCREEN LAYOUT */

.login-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding: 20px;
    gap: 20px;
}

/* LEFT PANEL */

.login-panel {
    display: flex;
    flex-direction: column;
    padding: 28px 7%;
    min-width: 0;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.login-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--copper);
}

/* LOGIN FORM */

.login-content {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 60px 0;
}

.login-eyebrow {
    color: #986332;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.login-content h1 {
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.15;
    margin: 15px 0;
}

.login-description {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 32px;
}

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

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

.form-label {
    color: var(--graphite);
    font-size: 14px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    min-height: 54px;
    padding: 15px 17px;
    border: 1px solid #DEDFE0;
    border-radius: 13px;
    background: #FFFFFF;
    color: var(--graphite);
    font-family: var(--body-font);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #96999E;
}

.form-input:hover {
    border-color: #BFC1C4;
}

.form-input:focus {
    border-color: var(--copper);
    box-shadow: 0 0 0 4px rgba(184,115,51,0.10);
}

/* PASSWORD VISIBILITY */

.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 80px;
}

.password-toggle {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    border: 0;
    background: transparent;
    color: #986332;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

/* REMEMBER ME & FORGOT PASSWORD */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}

.remember-label input {
    width: 17px;
    height: 17px;
    accent-color: var(--graphite);
    cursor: pointer;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: #986332;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* SUBMIT BUTTON */

.login-submit {
    width: 100%;
    min-height: 54px;
    font-size: 15px;
}

/* VALIDATION & SESSION MESSAGES */

.form-error {
    font-size: 13px;
    color: #B42318;
    margin: 0;
}

.session-status {
    background: #EDF6EF;
    border: 1px solid #C9E6D1;
    border-radius: 12px;
    padding: 14px 16px;
    color: #28613A;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* LEFT PANEL FOOTER */

.login-footer {
    border-top: 1px solid var(--border);
    padding-top: 22px;
    font-size: 12px;
    color: var(--muted);
}

/* RIGHT PANEL - DIGITAL ILLUSTRATION */

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    min-height: 650px;
    border-radius: 30px;
    padding: 50px 8%;
    background: linear-gradient(
        120deg,
        #FFF3DE,
        #F3C6AC,
        #DCE6F8,
        #F8E5D3
    );
    background-size: 300% 300%;
    animation: gradientFlow 16s ease infinite;
}

.login-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.visual-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #705542;
    margin-bottom: 45px;
}

/* FLOATING CREWHUB WORKSPACE */

.workspace-card {
    width: 100%;
    max-width: 390px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(37,40,43,0.10);
    animation: floatCard 7s ease-in-out infinite;
}

.workspace-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.workspace-heading h3 {
    font-size: 24px;
    font-weight: 700;
}

.workspace-heading p {
    font-size: 12px;
    color: var(--muted);
    margin: 5px 0 0;
}

.workspace-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ivory);
    color: var(--copper);
}

.workspace-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.workspace-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F7F7F5;
    padding: 13px;
    border-radius: 12px;
    color: var(--graphite);
    font-size: 13px;
    font-weight: 500;
}

.workspace-icon {
    display: grid;
    place-items: center;
    height: 36px;
    width: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    color: #535C65;
}

.workspace-icon svg,
.workspace-avatar svg {
    width: 19px;
    height: 19px;
}

.workspace-arrow {
    margin-left: auto;
    font-size: 17px;
    color: #85898E;
}

.workspace-status {
    position: relative;
    z-index: 1;
    margin-top: -12px;
    padding: 15px 24px;
    background: var(--graphite);
    color: #FFFFFF;
    border-radius: 13px;
    box-shadow: 0 10px 30px rgba(37,40,43,0.15);
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--peach);
    border-radius: 50%;
    margin-right: 8px;
}

/* RIGHT PANEL TEXT */

.visual-copy {
    text-align: center;
    margin-top: 55px;
    max-width: 440px;
}

.visual-copy h2 {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.055em;
}

.visual-copy p {
    font-size: 15px;
    color: #5C5E62;
    margin: 20px auto 0;
}

.visual-tagline {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(37,40,43,0.12);
    font-size: 12px;
    color: #65666B;
    text-align: center;
}

/* TABLET RESPONSIVENESS */

@media (max-width: 1100px) {

    .login-panel {
        padding: 25px 5%;
    }

    .login-visual {
        padding: 40px 6%;
    }

    .workspace-card {
        padding: 22px;
    }
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 768px) {

    .login-layout {
        display: flex;
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .login-panel {
        padding: 16px 12px;
        min-height: calc(100vh - 32px);
    }

    .login-logo {
        height: 44px;
    }

    .login-header {
        gap: 18px;
    }

    .login-content {
        max-width: 440px;
        padding: 45px 0;
    }

    .login-content h1 {
        font-size: 42px;
    }

    .login-visual {
        display: none;
    }

    .login-footer {
        text-align: center;
    }

    .login-options {
        gap: 12px;
    }

    .form-input {
        font-size: 16px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .login-visual,
    .workspace-card {
        animation: none;
    }
}
