.main {
    width: 100%;
    padding: 0;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    background: #f3f2ef;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid #d8d5ce;
    background: #f8f7f4;
}

.login-header p,
.panel-header p,
.login-footer span:first-child {
    margin: 0;
    color: #ef3333;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.login-footer a {
    color: inherit;
    text-decoration: none;
}

.login-header strong {
    display: block;
    margin-top: 4px;
    color: #252525;
    font-size: 13px;
}

.login-header > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 14px;
    border: 1px solid #d5d2ca;
    border-radius: 999px;
    background: #ffffff;
    color: #343434;
    font-size: 11px;
    font-weight: 600;
}

.login-shell {
    position: relative;
    width: min(440px, calc(100% - 48px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 58px 0;
}

.login-shell::before {
    content: "";
    position: fixed;
    inset: 0 0 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(21, 21, 21, 0.04) 18% 18.1%, transparent 18.1% 76%, rgba(239, 51, 51, 0.12) 76% 76.1%, transparent 76.1%),
        linear-gradient(0deg, transparent 0 52%, rgba(21, 21, 21, 0.04) 52% 52.1%, transparent 52.1%);
}

.login-card {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    padding: 44px;
    border: 1px solid #d8d5ce;
    background: #f8f7f4;
    box-shadow: 0 24px 60px rgba(21, 21, 21, 0.08);
}

.login-card img {
	width: 44px;
	margin-bottom: 42px;
}

.panel-header {
    margin-bottom: 32px;
}

.panel-header h1 {
    max-width: 340px;
    margin: 12px 0 0;
    color: #252525;
    font-size: 48px;
    line-height: 0.98;
}

.panel-header span {
    display: block;
    max-width: 330px;
    margin-top: 14px;
    color: #6b6861;
    font-size: 15px;
    line-height: 1.5;
}

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

.form-alert {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(239, 51, 51, 0.28);
    background: rgba(239, 51, 51, 0.08);
    color: #a92727;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.input-box {
    display: grid;
    gap: 8px;
}

.input-box label,
.form-row,
.form-row a {
    color: #4b4944;
    font-size: 13px;
    font-weight: 600;
}

.input-item {
    display: flex;
    align-items: center;
    min-height: 50px;
    border: 1px solid #d2cec5;
    background: #ffffff;
}

.input-item:focus-within {
    border-color: #252525;
}

.input-item input {
    min-width: 0;
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    padding: 0 15px;
    background: transparent;
    color: #252525;
    font-size: 15px;
}

.ghost-button {
    height: 32px;
    margin-right: 8px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #ef3333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.form-row a {
    color: #ef3333;
    text-decoration: none;
}

.check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.check-item input {
    accent-color: #ef3333;
}

.fill-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #ef3333;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 16px rgba(229, 57, 53, 0.22);
    transition:
        transform 0.16s cubic-bezier(0.23, 1, 0.32, 1),
        color 0.16s cubic-bezier(0.23, 1, 0.32, 1),
        background-color 0.16s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}

.fill-button:hover {
    background: #d92929;
}

.fill-button.is-loading {
    cursor: wait;
    opacity: 0.78;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid #e0ddd6;
}

.login-footer span:last-child {
    max-width: 190px;
    color: #7a766f;
    font-size: 12px;
    line-height: 1.45;
    text-align: right;
}

@media (max-width: 900px) {
    .login-shell {
        padding: 34px 0;
    }

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

@media (max-width: 640px) {
    .login-screen {
        grid-template-rows: auto minmax(0, 1fr);
    }

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

    .login-header > span {
        display: none;
    }

    .login-shell {
        width: calc(100% - 28px);
        padding: 20px 0;
    }

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

    .panel-header h1 {
        font-size: 38px;
    }

    .form-row,
    .login-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .login-footer span:last-child {
        text-align: left;
    }
}
