.auth-entry {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 4vw, 56px);
}

.auth-entry__panel {
    width: min(100%, 620px);
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: clamp(24px, 3.4vw, 40px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(43, 55, 50, 0.95), rgba(55, 69, 63, 0.92));
    box-shadow: 0 20px 44px rgba(8, 13, 11, 0.32);
    color: #ffffff;
}

.auth-entry__panel--wide {
    width: min(100%, 760px);
}

.auth-entry__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-entry__eyebrow {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-entry__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.05;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.auth-entry__subtitle {
    margin: 0;
    max-width: 34ch;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.5;
}

.auth-entry__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-entry__field-list,
.auth-entry__field-grid {
    display: grid;
    gap: 16px 18px;
}

.auth-entry__field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-entry__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.auth-entry__field--full {
    grid-column: 1 / -1;
}

.auth-entry__label {
    color: #ffffff;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.35;
}

.auth-entry__input {
    width: 100%;
    min-height: clamp(38px, 3.2vh, 44px);
    box-sizing: border-box;
    padding: 8px 14px;
    border: 1px solid #141816;
    border-radius: 5px;
    background: #f5efdf;
    color: #111111;
    font-family: "Rubik", Arial, sans-serif;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.3;
    text-align: right;
}

.auth-entry__input:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.password-control {
    position: relative;
    width: 100%;
}

.password-control--standalone {
    width: min(100%, 330px);
}

.password-control .auth-entry__input {
    padding-inline-end: 48px;
}

.password-control__toggle {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-control__toggle:hover {
    background: rgba(20, 24, 22, 0.08);
}

.password-control__toggle:focus-visible {
    outline: 2px solid #445a4f;
    outline-offset: 1px;
}

.password-control__toggle img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.auth-entry__validation {
    color: #ffe0e0;
    font-size: 12px;
    line-height: 1.35;
}

.auth-entry__message {
    padding: 10px 14px;
    border: 1px solid rgba(255, 210, 210, 0.45);
    border-radius: 8px;
    background: rgba(94, 31, 31, 0.45);
    color: #fff1f1;
    font-size: 14px;
    line-height: 1.45;
}

.auth-entry__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-entry__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 16px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.auth-entry__pill:hover,
.auth-entry__pill:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.auth-entry__link,
.auth-entry__switch-link {
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.auth-entry__link:hover,
.auth-entry__link:focus-visible,
.auth-entry__switch-link:hover,
.auth-entry__switch-link:focus-visible {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.auth-entry__submit {
    align-self: flex-start;
    min-width: 132px;
    min-height: 38px;
    padding: 0 20px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #74886f;
    color: #ffffff;
    font-family: "Rubik", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.auth-entry__submit:disabled {
    border-color: #666666;
    background: #b3b3b3;
    color: #666666;
    cursor: default;
}

.auth-entry__switch {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .auth-entry {
        padding: 20px 14px 32px;
    }

    .auth-entry__panel,
    .auth-entry__panel--wide {
        width: 100%;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .auth-entry__field-grid {
        grid-template-columns: 1fr;
    }

    .auth-entry__field--full {
        grid-column: auto;
    }
}
