﻿:root {
    --login-primary: #176b4d;
    --login-primary-dark: #0c4935;
    --login-primary-light: #2c8967;
    --login-accent: #9fd6bc;
    --login-background: #f2f7f4;
    --login-card: #ffffff;
    --login-text: #17231d;
    --login-muted: #68756e;
    --login-border: #dfe8e3;
    --login-error: #b42318;
    --login-error-background: #fff2f0;
}

* {
    box-sizing: border-box;
}

body.login-page {
    margin: 0;
    min-height: 100vh;
    background: var(--login-background);
    color: var(--login-text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(430px, 0.85fr);
    min-height: 100vh;
}

.login-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(38px, 5vw, 76px);
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(164, 222, 194, 0.23),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 75%,
            rgba(114, 197, 159, 0.18),
            transparent 32%
        ),
        linear-gradient(
            145deg,
            #0b3d2d 0%,
            #12563f 52%,
            #176b4d 100%
        );
}

.login-visual::before {
    content: "";
    position: absolute;
    right: -130px;
    bottom: -190px;
    width: 540px;
    height: 540px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
}

.login-visual::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -90px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.login-decoration-one {
    top: 18%;
    right: 8%;
    width: 180px;
    height: 180px;
    border: 34px solid rgba(255, 255, 255, 0.035);
}

.login-decoration-two {
    right: 22%;
    bottom: 12%;
    width: 54px;
    height: 54px;
    background: rgba(171, 226, 199, 0.12);
}

.login-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-brand-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    color: #0f5c42;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(3, 35, 24, 0.22);
}

.login-brand-icon svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-brand strong,
.login-mobile-brand strong {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.login-brand span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.login-introduction {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    margin: 70px 0;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: 24px;
    padding: 7px 13px;
    color: #daf5e7;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    backdrop-filter: blur(10px);
}

.login-introduction h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(39px, 4.5vw, 66px);
    font-weight: 710;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.login-introduction h1 span {
    display: block;
    color: #aee0c6;
}

.login-introduction > p {
    max-width: 610px;
    margin: 25px 0 36px;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.75;
}

.login-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.login-benefit {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 100px;
    padding: 18px 15px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    backdrop-filter: blur(13px);
}

.login-benefit-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    color: #0d503a;
    background: #aee0c6;
    border-radius: 9px;
}

.login-benefit-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-benefit strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.login-benefit small {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.5;
}

.login-visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
}

.login-footer-separator {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

.login-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 48px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(34, 128, 92, 0.08),
            transparent 28%
        ),
        linear-gradient(180deg, #f8fbf9 0%, #eef5f1 100%);
}

.login-card {
    width: min(100%, 465px);
    padding: clamp(32px, 4vw, 48px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(211, 225, 217, 0.9);
    border-radius: 28px;
    box-shadow:
        0 28px 70px rgba(28, 74, 54, 0.11),
        0 5px 20px rgba(28, 74, 54, 0.04);
    backdrop-filter: blur(18px);
}

.login-mobile-brand {
    display: none;
}

.login-card-header {
    margin-bottom: 31px;
}

.login-card-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--login-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.login-card-header h2 {
    margin: 0 0 9px;
    color: #16231d;
    font-size: clamp(31px, 3vw, 39px);
    font-weight: 740;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.login-card-header p {
    margin: 0;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.65;
}

.login-error {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 23px;
    padding: 14px 15px;
    color: var(--login-error);
    background: var(--login-error-background);
    border: 1px solid #ffd4ce;
    border-radius: 14px;
}

.login-error-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
}

.login-error-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.login-error strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.login-error p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #29372f;
    font-size: 13px;
    font-weight: 680;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #78867e;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-input-wrapper input {
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 16px 0 48px;
    color: #17231d;
    font-family: inherit;
    font-size: 14px;
    background: #f9fbfa;
    border: 1px solid var(--login-border);
    border-radius: 14px;
    outline: none;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-input-wrapper input:hover {
    border-color: #bdcec5;
}

.login-input-wrapper input:focus {
    background: #ffffff;
    border-color: var(--login-primary-light);
    box-shadow: 0 0 0 4px rgba(44, 137, 103, 0.12);
}

.login-input-wrapper:focus-within .login-input-icon {
    color: var(--login-primary);
}

.login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 55px;
    margin-top: 3px;
    padding: 0 21px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 740;
    cursor: pointer;
    background:
        linear-gradient(
            135deg,
            var(--login-primary) 0%,
            var(--login-primary-dark) 100%
        );
    border: 0;
    border-radius: 14px;
    box-shadow: 0 13px 28px rgba(18, 92, 66, 0.22);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.login-submit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.login-submit:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 17px 34px rgba(18, 92, 66, 0.28);
}

.login-submit:hover svg {
    transform: translateX(3px);
}

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

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 27px;
    padding-top: 23px;
    color: #7b8780;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid #edf1ef;
}

.login-security svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #5b7d6b;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-copyright {
    margin: 22px 0 0;
    color: #8a968f;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1100px) {
    .login-layout {
        grid-template-columns: minmax(440px, 1fr) minmax(400px, 0.9fr);
    }

    .login-benefits {
        grid-template-columns: 1fr;
        max-width: 430px;
    }

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

@media (max-width: 880px) {
    .login-layout {
        display: block;
    }

    .login-visual {
        display: none;
    }

    .login-access {
        min-height: 100vh;
        padding: 32px 20px;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 13px;
        margin-bottom: 33px;
        padding-bottom: 24px;
        border-bottom: 1px solid #e8eeea;
    }

    .login-mobile-brand .login-brand-icon {
        width: 47px;
        height: 47px;
        color: #ffffff;
        background: var(--login-primary);
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(23, 107, 77, 0.2);
    }

    .login-mobile-brand .login-brand-icon svg {
        width: 26px;
        height: 26px;
    }

    .login-mobile-brand strong {
        color: #1a2a21;
        font-size: 16px;
    }

    .login-mobile-brand span {
        display: block;
        color: #7b8880;
        font-size: 11px;
    }

    .login-card {
        width: min(100%, 480px);
    }
}

@media (max-width: 520px) {
    .login-access {
        justify-content: flex-start;
        padding: 18px 14px 28px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .login-card-header {
        margin-bottom: 26px;
    }

    .login-card-header h2 {
        font-size: 31px;
    }

    .login-copyright {
        margin-top: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-submit,
    .login-submit svg,
    .login-input-wrapper input {
        transition: none;
    }
}
