/* =========================================
   M+ LABS CLIENT PORTAL — LOGIN
   ========================================= */

.login-page {
    min-height: 80vh;
    padding: 48px 24px;
    background: #e8e9e2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-layout {
    width: 100%;
    max-width: 1440px;
    min-height: 680px;
    display: grid;
    grid-template-columns: 1fr 0.82fr;
    overflow: hidden;
    border-radius: 26px;
    background: #202820;
}

/* Left hero panel */

.login-hero {
    position: relative;
    min-height: 680px;
    padding: 42px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background:
        radial-gradient(
            ellipse at 30% 15%,
            rgba(110, 135, 105, 0.30),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            #263329 0%,
            #151b16 100%
        );
}

.login-logo {
    color: #ffffff;
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -1px;
    text-decoration: none;
}

.login-logo span {
    margin-left: 4px;
    font-size: 10px;
    letter-spacing: 3px;
}

.login-hero-content {
    max-width: 620px;
    margin: auto 0;
    padding: 80px 0;
}

.login-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
    color: #c5d4a0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.login-eyebrow span {
    width: 28px;
    height: 1px;
    background: #c5d4a0;
}

.login-hero-content h1 {
    margin: 0 0 22px;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -3px;
}

.login-hero-content h1 em {
    color: #c9e265;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.login-description {
    max-width: 490px;
    color: #c0c8bf;
    font-size: 17px;
    line-height: 1.8;
}

.login-hero-footer {
    margin: 0;
    color: #a9b2a7;
    font-size: 12px;
}

/* Right form panel */

.login-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 76px 48px;
    background: #f8f6ef;
}

.back-to-website {
    position: absolute;
    top: 28px;
    right: 32px;
    color: #555d52;
    font-size: 12px;
    text-decoration: none;
}

.back-to-website:hover {
    color: #748d35;
}

.login-form-container {
    width: 100%;
    max-width: 390px;
}

.login-welcome {
    margin-bottom: 22px;
    color: #81963d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-form-container h2 {
    margin: 0 0 14px;
    color: #171914;
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.login-intro {
    margin-bottom: 38px;
    color: #72776e;
    font-size: 14px;
    line-height: 1.7;
}

/* Form fields */

.client-login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-field label {
    color: #30372e;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 0;
    color: #171914;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d4d5cd;
    border-radius: 0;
    outline: none;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.login-field input:focus {
    border-bottom-color: #9dbd40;
    box-shadow: 0 1px 0 #9dbd40;
}

.login-field input::placeholder {
    color: #96998f;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    min-height: 18px;
    margin: 4px 0 0;
    color: #6c7068;
    font-size: 10px;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c7068;
    font-size: 10px;
    cursor: pointer;
}

.remember-me input {
    width: 14px;
    min-height: 14px;
    margin: 0;
    accent-color: #81963d;
}

.login-options a {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 4px 0 4px 12px;
    border: 0;
    color: #6c7068;
    background: none;
    text-align: right;
    white-space: nowrap;
    text-decoration: none;
    transition: color 180ms ease;
}

.login-options a:hover {
    color: #748d35;
}

.login-field-error,
.login-errors p {
    margin: 0;
    color: #a12626;
    font-size: 12px;
    line-height: 1.6;
}

.login-errors {
    padding: 12px 14px;
    background: #fff0f0;
    border: 1px solid #f0cccc;
    border-radius: 8px;
}

/* Submit button */

.login-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 62px;
    margin-top: 4px;
    padding: 0 22px;
    color: #ffffff;
    background: #10120f;
    border: 1px solid #10120f;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.login-submit:hover {
    background: #30372e;
    transform: translateY(-2px);
}

.login-submit span:last-child {
    font-size: 23px;
}

.login-submit:focus-visible {
    outline: 3px solid #9dbd40;
    outline-offset: 4px;
}

/* Contact and messages */

.login-contact {
    margin-top: 30px;
    color: #777b73;
    font-size: 12px;
    text-align: center;
}

.login-contact a {
    color: #171914;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-message {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.login-message.success {
    color: #355b25;
    background: #edf5e4;
}

.login-message.error {
    color: #a12626;
    background: #fff0f0;
}

/* Responsive layout */

@media (max-width: 900px) {
    .login-page {
        padding: 28px 18px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-hero {
        min-height: 420px;
        padding: 32px;
    }

    .login-hero-content {
        padding: 60px 0;
    }

    .login-hero-content h1 {
        font-size: clamp(42px, 8vw, 62px);
    }

    .login-panel {
        min-height: 540px;
        padding: 90px 32px 48px;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 16px 10px;
    }

    .login-layout {
        border-radius: 18px;
    }

    .login-hero {
        min-height: 360px;
        padding: 26px 22px;
    }

    .login-hero-content h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .login-description {
        font-size: 14px;
    }

    .login-panel {
        padding: 86px 22px 38px;
    }

    .back-to-website {
        top: 24px;
        right: 22px;
    }
}
