.login-body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #8dcffd 0%, #dbeefa 58%, #f7fbff 100%);
}

.login-sky {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-arc {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 2px solid rgba(255, 255, 255, 0.38);
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
}

.login-arc-1 {
    width: min(86vw, 980px);
    height: 390px;
    bottom: 118px;
}

.login-arc-2 {
    width: min(68vw, 760px);
    height: 268px;
    bottom: 88px;
    opacity: 0.82;
}

.login-cloud {
    position: absolute;
    bottom: -28px;
    width: 34vw;
    min-width: 240px;
    max-width: 430px;
    height: 176px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    filter: blur(26px);
}

.login-cloud-left {
    left: -5%;
}

.login-cloud-right {
    right: -6%;
}

.login-floating-brand {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 28px 32px 0;
}

.login-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111620;
}

.login-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-brand-copy strong {
    color: #111620;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.login-brand-copy small {
    color: rgba(17, 22, 32, 0.56);
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.login-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 28, 39, 0.96);
    color: #fff;
    box-shadow: 0 14px 26px rgba(27, 34, 45, 0.16);
}

.login-brand-mark svg {
    width: 22px;
    height: 22px;
}

.login-centered-shell {
    position: relative;
    z-index: 2;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    box-sizing: border-box;
}

.login-glass-card {
    width: min(100%, 442px);
    padding: 32px 34px 30px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(237, 251, 255, 0.9), rgba(255, 255, 255, 0.92));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow:
        0 28px 52px rgba(112, 160, 194, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.login-entry-icon {
    width: 64px;
    height: 64px;
    margin: -6px auto 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2430;
    box-shadow: 0 14px 28px rgba(107, 144, 174, 0.16);
}

.login-entry-icon svg {
    width: 28px;
    height: 28px;
}

.login-card-copy {
    text-align: center;
}

.login-card-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 2vw + 1rem, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
    color: #111620;
}

.login-card-copy p,
.login-inline-meta span {
    color: #687182;
    line-height: 1.7;
}

.login-card-copy p {
    margin: 0;
}

.login-form-compact {
    margin-top: 22px;
}

.login-field {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(243, 246, 250, 0.96);
    border: 1px solid rgba(218, 226, 237, 0.92);
}

.login-field + .login-field {
    margin-top: 12px;
}

.login-field:focus-within {
    border-color: #98cbef;
    box-shadow: 0 0 0 4px rgba(137, 199, 238, 0.18);
}

.login-field-password {
    grid-template-columns: 20px minmax(0, 1fr) 40px;
    gap: 10px;
}

.login-field-icon {
    color: #7d8594;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-field-icon svg {
    width: 16px;
    height: 16px;
}

.login-field input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 16px 0;
    color: #151922;
    outline: none;
    font: inherit;
}

.login-field input::placeholder {
    color: #8a93a2;
}

.login-password-toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
    color: #7d8594;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    justify-self: end;
    box-shadow: inset 0 0 0 1px rgba(208, 217, 229, 0.48);
    transition: color 0.22s ease, background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.login-password-toggle:hover {
    color: #1f2430;
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 0 0 1px rgba(188, 200, 216, 0.78),
        0 8px 18px rgba(104, 126, 149, 0.14);
}

.login-password-toggle:focus-visible {
    outline: none;
    color: #1f2430;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 4px rgba(137, 199, 238, 0.18),
        inset 0 0 0 1px rgba(152, 203, 239, 0.72);
}

.login-password-toggle:active {
    transform: scale(0.96);
}

.password-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.password-toggle-icon svg {
    width: 18px;
    height: 18px;
}

.password-toggle-icon-off {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .password-toggle-icon-eye {
    display: none;
}

.login-password-toggle[aria-pressed="true"] .password-toggle-icon-off {
    display: inline-flex;
    transform: scale(1.02);
}

.login-inline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    font-size: 13px;
}

.login-inline-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #222b39;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.login-inline-link:hover {
    color: #111620;
}

.login-inline-link:focus-visible {
    outline: none;
    opacity: 0.8;
}

.login-submit-dark {
    margin-top: 16px;
    background: linear-gradient(180deg, #313441, #181c25);
    box-shadow: 0 14px 24px rgba(24, 30, 40, 0.18);
}

.login-modal-open {
    overflow: hidden;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-modal[hidden] {
    display: none;
}

.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(142, 180, 205, 0.28);
    backdrop-filter: blur(10px);
}

.login-modal-card {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 22px 20px 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 231, 188, 0.34), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 253, 255, 0.98));
    box-shadow:
        0 24px 64px rgba(54, 70, 89, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(236, 239, 244, 0.92);
    text-align: center;
}

.login-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(243, 245, 248, 0.96);
    color: #8b93a2;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.login-modal-close:hover {
    background: rgba(233, 237, 242, 1);
    color: #2a3140;
}

.login-modal-close:focus-visible {
    outline: none;
    transform: scale(1.04);
}

.login-modal-icon {
    width: 58px;
    height: 58px;
    margin: 22px auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(251, 252, 255, 0.98));
    color: #d69a38;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow:
        0 12px 26px rgba(223, 194, 132, 0.2),
        inset 0 0 0 1px rgba(239, 223, 184, 0.72);
}

.login-modal-card h2 {
    margin: 0 0 10px;
    color: #141922;
    font-size: 1.7rem;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.login-modal-card p {
    margin: 0 auto;
    max-width: 30ch;
    color: #6e7787;
    font-size: 0.95rem;
    line-height: 1.65;
}

.login-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.login-modal-button {
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-modal-button:hover {
    transform: translateY(-1px);
}

.login-modal-button:focus-visible {
    outline: none;
    transform: translateY(-1px);
}

.login-modal-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
    box-shadow: none;
}

.login-modal-button-soft {
    background: rgba(243, 245, 249, 0.96);
    color: #2a3140;
}

.login-modal-button-soft:hover,
.login-modal-button-soft:focus-visible {
    background: rgba(235, 239, 244, 1);
}

.login-modal-button-dark {
    background: linear-gradient(180deg, #181c25, #0f1116);
    color: #fff;
    box-shadow: 0 14px 24px rgba(19, 23, 31, 0.18);
}

.login-modal-button-dark:hover,
.login-modal-button-dark:focus-visible {
    box-shadow: 0 18px 28px rgba(19, 23, 31, 0.22);
}

.login-toast {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 7;
    width: min(100% - 32px, 300px);
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 42px rgba(39, 48, 61, 0.16);
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.login-toast.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.login-toast-info {
    background: linear-gradient(180deg, rgba(244, 252, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.login-toast-error {
    background: linear-gradient(180deg, rgba(255, 245, 247, 0.98), rgba(255, 255, 255, 0.98));
}

.login-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(240, 243, 247, 0.96);
    color: #7d8594;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.login-toast-icon {
    width: 58px;
    height: 58px;
    margin: 10px auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 238, 243, 0.92);
    color: #d95f77;
    font-size: 1.35rem;
    font-weight: 700;
}

.login-toast-info .login-toast-icon {
    background: rgba(235, 249, 240, 0.92);
    color: #4b8a65;
}

.login-toast strong {
    display: block;
    margin-bottom: 8px;
    color: #161a23;
    font-size: 1.2rem;
}

.login-toast p {
    margin: 0;
    color: #70788a;
    line-height: 1.6;
}

.login-toast-action {
    width: 100%;
    margin-top: 16px;
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(243, 245, 249, 0.96);
    color: #161b24;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 767px) {
    .login-floating-brand {
        padding: 22px 18px 0;
    }

    .login-brand-copy strong {
        font-size: 1.4rem;
    }

    .login-brand-copy small {
        max-width: 220px;
        font-size: 0.58rem;
    }

    .login-centered-shell {
        min-height: 100svh;
        padding: 84px 16px 24px;
    }

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

    .login-field-password {
        grid-template-columns: 18px minmax(0, 1fr) 38px;
        gap: 10px;
        padding-right: 12px;
    }

    .login-password-toggle {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .password-toggle-icon svg {
        width: 17px;
        height: 17px;
    }

    .login-inline-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-modal {
        padding: 18px;
    }

    .login-modal-card {
        width: min(100%, 360px);
        padding: 20px 16px 16px;
        border-radius: 22px;
    }

    .login-modal-icon {
        width: 54px;
        height: 54px;
        margin-top: 20px;
    }

    .login-modal-card h2 {
        font-size: 1.5rem;
    }

    .login-modal-actions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .login-toast {
        top: 18px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
