html,
body {
    min-height: 100%;
}

body.shmtu-login-page {
    margin: 0;
    min-height: 100vh;
    color: #1f2933;
    background: #efefef;
    font-family: Roboto, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

.shmtu-login-main {
    min-height: calc(100vh - 104px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px 28px;
}

.shmtu-login-card {
    width: min(760px, 100%);
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
    padding: 32px 40px 34px;
}

.shmtu-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.shmtu-login-logo {
    width: 38px;
    height: 38px;
}

.shmtu-login-brand h1 {
    margin: 0;
    color: #536dab;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
}

.shmtu-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #f2b8b5;
    border-radius: 3px;
    color: #9f1d1d;
    background: #fff1f0;
}

.shmtu-alert p {
    margin: 6px 0 0;
}

.shmtu-field {
    position: relative;
    display: block;
    margin: 16px 0;
}

.shmtu-field > span,
.shmtu-captcha-field > label {
    position: absolute;
    top: -8px;
    left: 14px;
    z-index: 1;
    padding: 0 4px;
    color: #586eaa;
    background: #fff;
    font-size: 14px;
}

.shmtu-field input {
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    border: 1px solid #aeb4bf;
    border-radius: 3px;
    padding: 0 16px;
    font-size: 18px;
    outline: none;
    background: #fff;
}

.shmtu-field input:focus {
    border-color: #526caf;
    box-shadow: 0 0 0 1px #526caf;
}

.shmtu-password-field input {
    padding-right: 76px;
}

.shmtu-password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 66px;
    height: 56px;
    border: 0;
    border-radius: 0 3px 3px 0;
    color: #fff;
    background: #536dab;
    cursor: pointer;
    font-size: 20px;
}

.shmtu-captcha-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 148px;
    column-gap: 12px;
    align-items: center;
}

.shmtu-captcha-field[hidden] {
    display: none;
}

.shmtu-captcha-field img {
    width: 148px;
    height: 52px;
    object-fit: contain;
    cursor: pointer;
}

.shmtu-hidden-fields {
    display: none;
}

.shmtu-login-button {
    width: 100%;
    height: 42px;
    margin: 22px 0 20px;
    border: 0;
    border-radius: 3px;
    color: #fff;
    background: #536dab;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.2);
    font-size: 16px;
    cursor: pointer;
}

.shmtu-login-button:hover,
.shmtu-login-button:focus {
    background: #455f9e;
}

.shmtu-login-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #b8b8b8;
    padding-top: 22px;
    margin-top: 4px;
    font-size: 16px;
}

.shmtu-login-meta a,
.shmtu-security-note a,
.shmtu-login-footer a {
    color: #4867ad;
    text-decoration: underline;
}

.shmtu-login-meta strong {
    color: #b21f1f;
    font-weight: 500;
}

.shmtu-security-note {
    margin: 20px 0 0;
    line-height: 1.7;
    font-size: 16px;
}

.shmtu-login-footer {
    box-sizing: border-box;
    min-height: 104px;
    padding: 16px 18px 18px;
    text-align: center;
    color: #111827;
    font-size: 13px;
    line-height: 1.35;
}

.shmtu-login-footer p {
    margin: 2px 0;
}

body.shmtu-logout-page {
    display: flex;
    flex-direction: column;
}

.shmtu-logout-main {
    box-sizing: border-box;
    flex: 1 0 auto;
    min-height: auto;
    display: flex;
    justify-content: center;
    padding: 48px 18px 20px;
}

.shmtu-logout-card {
    box-sizing: border-box;
    width: min(980px, 100%);
    align-self: flex-start;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
    padding: 30px 36px 36px;
}

.shmtu-logout-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 34px;
    color: #000;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.shmtu-logout-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: currentColor;
}

.shmtu-logout-message {
    margin: 0 0 28px;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.shmtu-logout-message:last-child {
    margin-bottom: 0;
}

.shmtu-logout-message a {
    color: #286fbd;
    text-decoration: underline;
}

.shmtu-success-main {
    min-height: calc(100vh - 104px);
    display: flex;
    justify-content: center;
    padding: 48px 18px 28px;
}

.shmtu-success-card {
    box-sizing: border-box;
    width: min(980px, 100%);
    align-self: flex-start;
    background: #fff;
    border: 1px solid #d7d7d7;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.16);
    padding: 28px 36px 36px;
}

.shmtu-success-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 20px;
    margin-bottom: 22px;
}

.shmtu-success-header h1 {
    margin: 0;
    color: #536dab;
    font-size: 30px;
    line-height: 1.2;
}

.shmtu-success-header p,
.shmtu-success-message,
.shmtu-success-data-note {
    margin: 8px 0 0;
    line-height: 1.7;
    font-size: 16px;
}

.shmtu-success-message {
    margin-top: 0;
}

.shmtu-success-security {
    border-bottom: 1px solid #d8d8d8;
    padding-bottom: 20px;
}

.shmtu-success-data {
    margin-top: 22px;
}

.shmtu-success-data h2 {
    margin: 0;
    color: #1f2933;
    font-size: 20px;
}

.shmtu-attribute-section {
    margin-top: 22px;
}

.shmtu-attribute-section h3 {
    margin: 0 0 10px;
    color: #536dab;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.shmtu-attribute-table-wrap {
    overflow-x: auto;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
}

.shmtu-attribute-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.shmtu-attribute-table th,
.shmtu-attribute-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.shmtu-attribute-table th {
    background: #f8f9fb;
    color: #1f2933;
    font-weight: 600;
}

.shmtu-attribute-table tr:last-child td {
    border-bottom: 0;
}

.shmtu-attribute-table td:first-child {
    width: 32%;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (max-width: 640px) {
    .shmtu-login-main {
        min-height: auto;
        padding: 20px 12px;
    }

    .shmtu-login-card {
        padding: 24px 18px;
    }

    .shmtu-login-brand h1 {
        font-size: 30px;
    }

    .shmtu-login-meta {
        gap: 10px;
        flex-direction: column;
    }

    .shmtu-captcha-field {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }

    .shmtu-logout-main {
        min-height: auto;
        padding: 20px 12px;
    }

    .shmtu-logout-card {
        padding: 22px 18px 26px;
    }

    .shmtu-logout-title {
        align-items: flex-start;
        margin-bottom: 24px;
        font-size: 22px;
    }

    .shmtu-logout-message {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .shmtu-success-main {
        min-height: auto;
        padding: 20px 12px;
    }

    .shmtu-success-card {
        padding: 24px 18px;
    }

    .shmtu-success-header {
        align-items: flex-start;
    }

    .shmtu-success-header h1 {
        font-size: 26px;
    }
}
