html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

.auth-page {
    min-height: 100vh;
    background: #061823;
    color: #ffffff;
    overflow: hidden;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.auth-shell__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
}

.auth-shell__right-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(3, 17, 27, 0.94) 0%,
        rgba(3, 17, 27, 0.82) 38%,
        rgba(3, 17, 27, 0.34) 72%,
        rgba(3, 17, 27, 0) 100%
    );
}

.auth-shell__frame {
    position: absolute;
    inset: 10px;
    z-index: 2;
    display: flex;
    min-height: calc(100vh - 20px);
    border: 1px solid rgba(43, 109, 138, 0.65);
    border-radius: 10px;
    overflow: hidden;
}

.auth-shell__left {
    flex: 0 0 50%;
}

.auth-panel {
    flex: 0 0 50%;
    min-height: calc(100vh - 20px);
    background: rgba(3, 17, 27, 0.46);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    position: relative;
}

.auth-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(3, 17, 27, 0.16) 0%,
        rgba(3, 17, 27, 0.04) 34%,
        rgba(3, 17, 27, 0.26) 100%
    );
    pointer-events: none;
}

.auth-panel__inner {
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 20px);
    display: flex;
    flex-direction: column;
    padding: 34px 54px 24px 54px;
}

.auth-brand {
    display: flex;
    align-items: center;
}

.auth-brand__logo {
    display: block;
    width: auto;
    height: 56px;
    max-width: 100%;
    object-fit: contain;
}

.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.auth-footer {
    font-size: 11px;
    color: rgba(255,255,255,0.72);
}

.login-card {
    width: 100%;
    max-width: 430px;
    color: #ffffff;
}

.login-header {
    text-align: left;
}

.login-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: rgba(255,255,255,0.62);
}

.login-title {
    margin: 16px 0 0 0;
    max-width: 420px;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 700;
    color: #ffffff;
}

.login-form {
    margin-top: 30px;
}

.login-field {
    margin-bottom: 18px;
}

.login-label {
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.login-label--dark {
    color: #09212E;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.74);
    pointer-events: none;
}

.login-input-icon svg,
.login-input-toggle svg {
    width: 100%;
    height: 100%;
    display: block;
}

.login-input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.02);
    color: #ffffff;
    padding: 0 16px 0 46px;
    font-size: 15px;
    outline: none;
}

.login-input::placeholder {
    color: rgba(255,255,255,0.50);
}

.login-input:focus {
    border-color: #7ec8e3;
}

.login-input--password {
    padding-right: 50px;
}

.login-input-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.74);
    cursor: pointer;
}

.login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.86);
    cursor: pointer;
}

.login-check input {
    width: 16px;
    height: 16px;
}

.login-link {
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.90);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.login-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.login-btn {
    min-width: 160px;
    height: 46px;
    padding: 0 24px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.56);
    background: rgba(9,33,46,0.72);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.login-btn:hover {
    background: rgba(12,52,72,0.95);
    border-color: #7ec8e3;
}

.login-alert {
    margin-top: 20px;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.5;
}

.login-alert--error {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(172, 24, 44, 0.18);
    border: 1px solid rgba(172, 24, 44, 0.55);
}

.login-alert--info {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
}

.login-alert--success {
    margin-bottom: 16px;
    background: rgba(79, 175, 156, 0.12);
    border: 1px solid rgba(79, 175, 156, 0.34);
    color: #1e323e;
}

.login-alert--error-soft {
    margin-bottom: 16px;
    background: rgba(172, 24, 44, 0.10);
    border: 1px solid rgba(172, 24, 44, 0.28);
    color: #7a1220;
}

.login-alert__icon {
    font-weight: 700;
}

.login-error {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #ffb3b8;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0,0,0,0.62);
}

.modal-box {
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #c3c7ce;
    box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}

.modal-body {
    padding: 24px;
    text-align: left;
}

.modal-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #09212E;
}

.modal-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #405364;
}

.modal-form {
    margin-top: 18px;
}

.modal-input {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #c3c7ce;
    background: #ffffff;
    color: #09212E;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

.modal-input:focus {
    border-color: #4FAF9C;
    box-shadow: 0 0 0 2px rgba(79,175,156,0.22);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
}

.modal-actions--between {
    flex-wrap: wrap;
}

.modal-btn {
    min-width: 138px;
    height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.modal-btn--primary {
    background: #017A61;
    color: #ffffff;
}

.modal-btn--primary:hover {
    background: #00886F;
}

.modal-btn--secondary {
    background: #ffffff;
    color: #405364;
    border-color: #c3c7ce;
}

.modal-btn--secondary:hover {
    background: #f3f5f7;
}

@media (max-width: 1280px) {
    .auth-panel__inner {
        padding: 28px 40px 22px 40px;
    }

    .login-card {
        max-width: 410px;
    }

    .login-title {
        font-size: 30px;
    }
}

@media (max-width: 991px) {
    .auth-shell__right-overlay {
        width: 100%;
        background: rgba(3, 17, 27, 0.74);
    }

    .auth-shell__frame {
        inset: 0;
        min-height: 100vh;
        border: none;
        border-radius: 0;
    }

    .auth-shell__left {
        display: none;
    }

    .auth-panel {
        flex: 1 1 100%;
        width: 100%;
        min-height: 100vh;
        background: rgba(3, 17, 27, 0.58);
    }

    .auth-panel__inner {
        min-height: 100vh;
        padding: 24px 22px 20px 22px;
    }

    .auth-brand__logo {
        height: 44px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-title {
        font-size: 28px;
    }

    .login-label {
        font-size: 14px;
    }

    .login-input {
        height: 48px;
        font-size: 15px;
    }

    .login-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-actions {
        justify-content: stretch;
    }

    .login-btn {
        width: 100%;
    }

    .auth-footer {
        text-align: left;
    }
}