/* ==========================================================================
   login.css — Login page styles
   Figma node: 754:8667
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.login-body {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    background-color: #ffffff;
    color: #070e1a;
}

.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* --------------------------------------------------------------------------
   Left visual panel — Figma: 754:8668
   -------------------------------------------------------------------------- */

.login-visual {
    position: relative;
    flex: 0 0 54.57%;
    min-height: 100vh;
    background-image: url("../images/login-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(28, 43, 74, 0.88) 0%,
        rgba(28, 43, 74, 0.55) 60%,
        rgba(28, 43, 74, 0.32) 100%
    );
}

.login-visual-quote {
    position: absolute;
    left: 86px;
    right: 48px;
    bottom: 64px;
    z-index: 1;
    padding-top: 48px;
}

.login-visual-accent {
    display: block;
    width: 40px;
    height: 1px;
    background-color: #f16522;
}

.login-visual-text {
    margin: 32px 0 0;
    max-width: 693px;
    font-family: "Playfair Display", serif;
    font-weight: 600;
    font-style: italic;
    font-size: 28px;
    line-height: 39.2px;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Right form panel — Figma: 754:8673
   -------------------------------------------------------------------------- */

.login-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    background-color: #ffffff;
}

.login-panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 80px;
    max-width: 809px;
    width: 100%;
}

.login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1c2b4a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-back-link:hover {
    color: #f16522;
}

.login-back-link img {
    display: block;
    flex-shrink: 0;
}

.login-form-wrap {
    width: 100%;
    max-width: 649px;
}

.login-header {
    margin-bottom: 0;
}

.login-title {
    margin: 10px 0 0;
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 36.8px;
    letter-spacing: -0.015em;
    color: #070e1a;
}

.login-subtitle {
    margin: 10px 0 0;
    max-width: 400px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 23.8px;
    color: rgba(7, 14, 26, 0.6);
}

/* --------------------------------------------------------------------------
   Form fields — Figma: 754:8687
   -------------------------------------------------------------------------- */

.login-form {
    width: 100%;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 36px;
}

.login-field {
    display: flex;
    flex-direction: column;
}

.login-label {
    padding-bottom: 6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 16.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(11, 7, 26, 0.8);
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    background-color: #ffffff;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 21px;
    color: #070e1a;
    outline: none;
    transition: border-color 0.2s ease;
}

.login-input::placeholder {
    color: rgba(7, 14, 26, 0.5);
}

.login-input:focus {
    border-color: #1c2b4a;
}

.login-field:has(.login-error) .login-input,
.login-input.login-input--error {
    border-color: #ef4444;
}

.login-error {
    display: block;
    margin-top: 6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    color: #dc2626;
}

.login-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input-password {
    padding-right: 44px;
}

.login-password-toggle {
    position: absolute;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.login-password-toggle:hover img {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Remember / Forgot row — Figma: 754:8703
   -------------------------------------------------------------------------- */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 32px;
}

.login-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.login-checkbox {
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    accent-color: #f16522;
    flex-shrink: 0;
}

.login-remember-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 19.5px;
    color: rgba(11, 7, 26, 0.8);
}

.login-forgot {
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 19.5px;
    color: #f16522;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-forgot:hover {
    color: #d4571c;
}

/* --------------------------------------------------------------------------
   Submit button — Figma: 754:8710
   -------------------------------------------------------------------------- */

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 10px 14px;
    border: none;
    background-color: #f16522;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    line-height: 21.75px;
    letter-spacing: 0.03em;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.login-submit:hover {
    background-color: #d4571c;
}

.login-submit-arrow {
    font-weight: 600;
    font-size: 14.5px;
    line-height: 21.75px;
    letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Footer — Figma: 754:8715
   -------------------------------------------------------------------------- */

.login-panel-footer {
    padding: 24px 80px;
    border-top: 1px solid #f3f4f6;
}

.login-copyright {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 16.5px;
    letter-spacing: 0.02em;
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .login-visual-quote {
        left: 48px;
    }
}

@media (max-width: 991px) {
    .login-page {
        flex-direction: column;
    }

    .login-visual {
        flex: none;
        min-height: 320px;
        height: 320px;
    }

    .login-visual-quote {
        left: 32px;
        right: 32px;
        bottom: 32px;
        padding-top: 24px;
    }

    .login-visual-text {
        font-size: 22px;
        line-height: 30.8px;
    }

    .login-panel {
        min-height: auto;
    }

    .login-panel-body {
        padding: 48px 32px;
        max-width: none;
    }

    .login-panel-footer {
        padding: 24px 32px;
    }
}

@media (max-width: 575px) {
    .login-visual {
        min-height: 240px;
        height: 240px;
    }

    .login-visual-quote {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .login-visual-text {
        font-size: 18px;
        line-height: 25.2px;
    }

    .login-panel-body {
        padding: 40px 24px;
    }

    .login-panel-footer {
        padding: 20px 24px;
    }

    .login-title {
        font-size: 28px;
        line-height: 32px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* --------------------------------------------------------------------------
   Alert messages
   -------------------------------------------------------------------------- */

.login-alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 20px;
}

.login-alert--success {
    background-color: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
}

.login-alert--error {
    background-color: #fee2e2;
    border: 1px solid #f87171;
    color: #991b1b;
}

.login-footer-text {
    margin-top: 20px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
