.auth-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(18, 45, 82, 0.5) 0%, rgba(30, 60, 114, 0.16) 48%, rgba(18, 45, 82, 0.44) 100%),
        url("../images/攀枝花背景0205.webp") center/cover no-repeat fixed;
    --portal-blue: #1e3c72;
    --portal-blue-light: #2a5298;
    --portal-orange: #ff6b35;
    --portal-orange-dark: #ff5722;
    --portal-ink: #102a4c;
    --portal-muted: #667085;
}

.monitor-permission-field {
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(30, 60, 114, 0.16);
    border-radius: 8px;
    background: rgba(30, 60, 114, 0.04);
}

.monitor-admin-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
}

.monitor-permission-field legend {
    padding: 0 6px;
    color: #1e3c72;
    font-weight: 700;
}

.monitor-permission-field label,
.monitor-review-permissions label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: #26415f;
    font-size: 14px;
}

.monitor-permission-field input,
.monitor-review-permissions input {
    width: auto;
}

.monitor-admin-main {
    width: min(1500px, calc(100vw - 40px));
    margin: 28px auto 40px;
}

.monitor-admin-card {
    padding: 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 22px 55px rgba(15, 40, 80, 0.18);
}

.monitor-admin-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.monitor-admin-head h1 {
    margin: 4px 0 0;
    color: #12335d;
    font-size: 24px;
}

.monitor-admin-head a,
.monitor-review-actions button {
    border: 0;
    border-radius: 6px;
    background: #1e5aa8;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.monitor-admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.monitor-account-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.monitor-account-summary div {
    padding: 14px;
    border: 1px solid rgba(30, 60, 114, 0.1);
    border-radius: 8px;
    background: rgba(30, 60, 114, 0.05);
}

.monitor-account-summary strong,
.monitor-account-summary span {
    display: block;
}

.monitor-account-summary strong {
    color: #1e5aa8;
    font-size: 26px;
    line-height: 1;
}

.monitor-account-summary span {
    margin-top: 8px;
    color: #52677f;
    font-size: 13px;
}

.monitor-admin-section {
    margin-top: 22px;
}

.monitor-admin-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.monitor-admin-section-title h2 {
    margin: 0;
    color: #12335d;
    font-size: 20px;
}

.monitor-admin-section-title span {
    color: #6b7c90;
    font-size: 13px;
}

.monitor-admin-table {
    overflow-x: auto;
}

.monitor-admin-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
}

.monitor-admin-table th,
.monitor-admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(30, 60, 114, 0.12);
    color: #263f5f;
    text-align: left;
    vertical-align: top;
}

.monitor-admin-table th {
    color: #1e3c72;
    font-size: 13px;
    background: rgba(30, 60, 114, 0.06);
}

.monitor-admin-table td strong,
.monitor-admin-table td span {
    display: block;
}

.monitor-admin-table td span,
.monitor-admin-table small {
    margin-top: 4px;
    color: #6b7c90;
    font-size: 12px;
}

.monitor-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(30, 60, 114, 0.1);
    color: #1e3c72;
    font-size: 12px;
    font-weight: 700;
}

.monitor-status-approved {
    background: rgba(0, 153, 105, 0.12);
    color: #087a58;
}

.monitor-status-rejected,
.monitor-status-disabled {
    background: rgba(197, 64, 64, 0.12);
    color: #a12f2f;
}

.monitor-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.monitor-review-actions button[value="reject"],
.monitor-review-actions button[value="disable"] {
    background: #8a4050;
}

.monitor-review-permissions {
    display: grid;
    gap: 7px;
}

.monitor-review-permissions + button,
.monitor-inline-form button {
    margin-top: 8px;
    border: 0;
    border-radius: 6px;
    background: #1e5aa8;
    color: #fff;
    padding: 7px 10px;
    font-weight: 700;
    cursor: pointer;
}

.monitor-inline-form {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.monitor-inline-form input,
.monitor-inline-form select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid rgba(30, 60, 114, 0.18);
    border-radius: 6px;
    color: #263f5f;
}

.monitor-muted {
    display: block;
    color: #6b7c90;
    font-size: 13px;
    line-height: 1.5;
}

.monitor-admin-table textarea {
    width: 100%;
    min-width: 160px;
    border: 1px solid rgba(30, 60, 114, 0.18);
    border-radius: 6px;
    padding: 8px;
    resize: vertical;
}

.monitor-empty {
    text-align: center;
    color: #6b7c90;
}

.monitor-log-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.monitor-log-grid div,
.monitor-log-grid p {
    margin: 0;
    padding: 11px 12px;
    border: 1px solid rgba(30, 60, 114, 0.1);
    border-radius: 8px;
    background: rgba(30, 60, 114, 0.04);
}

.monitor-log-grid strong,
.monitor-log-grid span,
.monitor-log-grid em {
    display: block;
}

.monitor-log-grid strong {
    color: #203a5d;
    font-size: 14px;
}

.monitor-log-grid span,
.monitor-log-grid em {
    margin-top: 4px;
    color: #6b7c90;
    font-size: 12px;
    font-style: normal;
}

.monitor-denied-card {
    max-width: 920px;
}

.monitor-denied-actions {
    display: grid;
    gap: 12px;
}

.monitor-denied-actions .auth-submit {
    display: block;
    text-align: center;
    text-decoration: none;
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 60px 0 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    opacity: 0.16;
    z-index: 0;
}

.auth-header {
    background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-light) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 18px rgba(20, 51, 96, 0.18);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    border-radius: 0 0 25px 25px;
    overflow: hidden;
}

.auth-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.94), rgba(42, 82, 152, 0.94));
    z-index: -1;
}

.auth-header-inner {
    max-width: 1500px;
    min-height: 60px;
    margin: 0 auto;
    padding: 0 36px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    min-width: 0;
}

.auth-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.auth-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-header strong,
.auth-page-mark {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
}

.auth-header strong::after,
.auth-page-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 26px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--portal-orange);
}

.auth-home-link {
    justify-self: end;
    min-width: 124px;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 999px;
    color: white;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-home-link:hover {
    color: var(--portal-blue);
    border-color: white;
    background: white;
}

.auth-header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-datetime {
    display: inline-flex;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.auth-main {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(14px, 3vh, 30px) 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-slogan {
    color: white;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}

.auth-slogan p {
    display: inline-block;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: rgba(30, 60, 114, 0.26);
    font-size: 15px;
}

.auth-slogan h1 {
    margin-bottom: 18px;
    font-size: 48px;
    line-height: 1.14;
    letter-spacing: 0;
    color: white;
}

.auth-slogan span {
    font-size: 22px;
}

.auth-card,
.account-panel {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 14px;
    box-shadow: 0 24px 56px rgba(3, 21, 48, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
}

.login-card {
    width: min(900px, 100%);
    min-height: min(470px, 100%);
    display: grid;
    grid-template-columns: minmax(330px, 40%) minmax(0, 60%);
    overflow: hidden;
    transform: translateX(260px);
}

.register-card {
    width: min(1040px, 100%);
    max-height: 100%;
    display: grid;
    grid-template-columns: minmax(310px, 34%) minmax(0, 66%);
    overflow: hidden;
    transform: translateX(260px);
}

.register-side {
    padding-top: 38px;
    padding-bottom: 38px;
}

.auth-side {
    padding: 40px 30px;
    border-right: 1px solid #e6eaf0;
    color: #344054;
    background:
        linear-gradient(180deg, rgba(238, 245, 255, 0.9), rgba(255, 255, 255, 0.78)),
        radial-gradient(circle at 20% 15%, rgba(255, 107, 53, 0.14), transparent 30%);
}

.auth-kicker {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(30, 60, 114, 0.18);
    color: var(--portal-blue);
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

.auth-side h1 {
    margin: 0 0 14px;
    color: var(--portal-ink);
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: 0;
}

.auth-side-desc {
    margin: 0 0 24px;
    color: #475467;
    font-size: 15px;
    line-height: 1.75;
}

.auth-side h2 {
    margin: 0 0 8px;
    color: var(--portal-ink);
    font-size: 19px;
}

.auth-service-note {
    margin-bottom: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.78);
    border-left: 4px solid var(--portal-orange);
    border-radius: 8px;
}

.auth-service-note p {
    margin: 0;
    color: #475467;
    font-size: 14px;
    line-height: 1.7;
}

.auth-service-list {
    display: grid;
    gap: 10px;
}

.auth-service-list div {
    padding: 13px 14px;
    border: 1px solid #e4edf8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.64);
}

.auth-service-list span {
    display: block;
    margin-bottom: 5px;
    color: var(--portal-blue);
    font-size: 13px;
    font-weight: 700;
}

.auth-service-list strong {
    display: block;
    color: #344054;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.auth-official {
    margin: 22px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(30, 60, 114, 0.12);
    color: var(--portal-ink);
    font-size: 13px;
    font-weight: 700;
}

.auth-form-panel {
    padding: 42px 46px 34px;
}

.auth-form-panel.wide {
    padding: 42px 56px 36px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 58px;
    margin-bottom: 26px;
    border-bottom: 1px solid #e5e7eb;
}

.auth-tabs a {
    position: relative;
    padding: 0 2px 14px;
    color: #1d2939;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-tabs a:hover {
    color: var(--portal-blue-light);
}

.auth-tabs a.active {
    color: var(--portal-blue);
    font-weight: 700;
}

.auth-tabs a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--portal-orange);
    border-radius: 999px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

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

.auth-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 14px;
}

.auth-field > span:first-child {
    font-weight: 600;
}

.auth-input-wrap {
    position: relative;
    display: block;
}

.auth-input-wrap::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    opacity: 0.76;
    z-index: 1;
}

.auth-input-user::before {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21C20 17.6863 16.4183 15 12 15C7.58172 15 4 17.6863 4 21' stroke='%232a5298' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z' stroke='%232a5298' stroke-width='2'/%3E%3C/svg%3E");
}

.auth-input-lock::before {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 11V8C7 5.23858 9.23858 3 12 3C14.7614 3 17 5.23858 17 8V11' stroke='%232a5298' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M6 11H18C19.1046 11 20 11.8954 20 13V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V13C4 11.8954 4.89543 11 6 11Z' stroke='%232a5298' stroke-width='2'/%3E%3C/svg%3E");
}

.auth-form input[type="text"],
.auth-form input[type="tel"],
.auth-form input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #101828;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.96);
}

.auth-input-wrap input[type="text"],
.auth-input-wrap input[type="password"] {
    padding-left: 42px;
}

.auth-input-lock input[type="password"],
.auth-input-lock input[type="text"] {
    padding-right: 66px;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="tel"]:focus,
.auth-form input[type="password"]:focus {
    border-color: var(--portal-blue-light);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.14);
}

.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--portal-blue);
    font-size: 13px;
    cursor: pointer;
}

.auth-password-toggle:hover {
    background: #eef4ff;
    color: var(--portal-orange-dark);
}

.auth-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 8px !important;
    color: #475467;
    font-size: 13px;
    line-height: 1.6;
}

.auth-check input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--portal-blue);
    flex: 0 0 auto;
}

.auth-text-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--portal-blue);
    font: inherit;
    cursor: pointer;
}

.auth-text-link:hover {
    color: var(--portal-orange-dark);
}

.auth-error-text {
    min-height: 18px;
    margin: -8px 0 0;
    color: #c2413b;
    font-size: 13px;
}

.full-row {
    grid-column: 1 / -1;
}

.auth-submit {
    height: 46px;
    border: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-light) 100%);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-submit:hover {
    filter: brightness(1.04);
    box-shadow: 0 8px 18px rgba(30, 60, 114, 0.24);
    transform: translateY(-1px);
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
    color: #667085;
    font-size: 14px;
}

.auth-actions a {
    color: var(--portal-blue);
    text-decoration: none;
}

.auth-actions a:hover {
    color: var(--portal-orange-dark);
}

.register-actions {
    justify-content: flex-start;
}

.auth-secondary-button {
    min-height: 38px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(30, 60, 114, 0.28);
    border-radius: 6px;
    background: #eef4ff;
    color: var(--portal-blue);
    font-weight: 700;
    transition: all 0.2s;
}

.auth-secondary-button:hover {
    border-color: var(--portal-orange);
    background: #fff7ed;
}

.flash-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash-message {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.flash-message.success {
    background: #ecfdf3;
    color: #027a48;
}

.flash-message.error {
    background: #fff1f3;
    color: #b42318;
}

.account-panel {
    width: min(860px, 100%);
    padding: 42px 48px;
}

.account-kicker {
    color: var(--portal-blue);
    font-weight: 700;
}

.account-panel h1 {
    margin: 8px 0 28px;
    color: #101828;
    font-size: 34px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-grid div {
    padding: 18px;
    background: #f7faff;
    border: 1px solid #e4edf8;
    border-radius: 6px;
}

.account-grid span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 13px;
}

.account-grid strong {
    color: #1d2939;
    overflow-wrap: anywhere;
}

.account-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.account-actions a {
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-light) 100%);
    border-radius: 4px;
    color: white;
    text-decoration: none;
}

.account-actions a + a {
    background: #eef4ff;
    color: var(--portal-blue);
}

.auth-footer {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--portal-blue) 0%, var(--portal-blue-light) 100%);
    color: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -4px 18px rgba(20, 51, 96, 0.16);
    backdrop-filter: blur(8px);
}

.auth-footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 10px 32px 8px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.auth-footer-primary,
.auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 22px;
    font-size: 14px;
}

.auth-footer-primary {
    color: white;
    font-weight: 600;
}

.auth-footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.auth-footer-links a:hover {
    color: #ffd166;
}

.auth-footer-meta {
    padding: 7px 24px 9px;
    display: flex;
    justify-content: center;
    gap: 26px;
    flex-wrap: wrap;
    background: rgba(17, 39, 77, 0.26);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.auth-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 22px 52px rgba(3, 21, 48, 0.32);
    color: #344054;
}

.auth-dialog::backdrop {
    background: rgba(8, 25, 51, 0.46);
}

.auth-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #eef4ff;
    color: var(--portal-ink);
}

.auth-dialog-head strong {
    font-size: 18px;
}

.auth-dialog p {
    margin: 0;
    padding: 20px 18px;
    line-height: 1.8;
}

.auth-dialog-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: white;
    color: var(--portal-blue);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.auth-dialog-confirm {
    display: block;
    min-width: 108px;
    height: 38px;
    margin: 0 18px 18px auto;
    border: 0;
    border-radius: 6px;
    background: var(--portal-blue);
    color: white;
    cursor: pointer;
}

@media (max-height: 860px) and (min-width: 761px) {
    .auth-main {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-card {
        min-height: 430px;
    }

    .auth-side {
        padding: 28px 30px;
    }

    .register-side {
        padding-top: 26px;
        padding-bottom: 26px;
    }

    .auth-side h1 {
        margin-bottom: 10px;
        font-size: 27px;
    }

    .auth-side-desc {
        margin-bottom: 16px;
        line-height: 1.6;
    }

    .auth-service-note {
        margin-bottom: 12px;
        padding: 14px 16px;
    }

    .auth-service-list {
        gap: 8px;
    }

    .auth-service-list div {
        padding: 10px 12px;
    }

    .auth-official {
        margin-top: 14px;
        padding-top: 12px;
    }

    .auth-form-panel {
        padding: 30px 46px 26px;
    }

    .auth-form-panel.wide {
        padding: 30px 48px 26px;
    }

    .auth-tabs {
        margin-bottom: 18px;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-form label {
        gap: 6px;
    }

    .auth-form input[type="text"],
    .auth-form input[type="tel"],
    .auth-form input[type="password"] {
        height: 42px;
    }

    .auth-actions {
        margin-top: 12px;
    }
}

@media (max-height: 760px) and (min-width: 761px) {
    .auth-footer-inner {
        padding-top: 7px;
        padding-bottom: 5px;
    }

    .auth-footer-meta {
        padding-top: 5px;
        padding-bottom: 6px;
    }

    .auth-footer-primary,
    .auth-footer-links {
        gap: 4px 18px;
        font-size: 13px;
    }

    .auth-footer-meta {
        font-size: 12px;
    }

    .login-card,
    .register-card {
        transform: translateX(260px) scale(0.92);
        transform-origin: center;
    }
}

@media (max-width: 1100px) {
    .auth-page {
        padding-top: 104px;
    }

    .auth-page::before {
        inset: 104px 0 0;
    }

    .auth-header-inner {
        grid-template-columns: 1fr auto;
        justify-items: center;
        min-height: 88px;
        padding: 12px 24px;
        gap: 10px 18px;
    }

    .auth-brand {
        justify-self: start;
    }

    .auth-header strong {
        display: none;
    }

    .auth-header-actions {
        justify-self: end;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .auth-main {
        padding-top: 34px;
    }

    .login-card {
        width: min(900px, 100%);
        grid-template-columns: minmax(310px, 39%) minmax(0, 61%);
        transform: translateX(32px);
    }

    .register-card {
        transform: translateX(32px);
        grid-template-columns: minmax(290px, 34%) minmax(0, 66%);
    }

    .auth-slogan {
        text-align: center;
    }

    .auth-footer-inner {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 760px) {
    .auth-page {
        padding-top: 128px;
        background-attachment: scroll;
    }

    .auth-page::before {
        inset: 128px 0 0;
        background-size: 42px 42px;
    }

    .auth-header {
        border-radius: 0 0 25px 25px;
    }

    .auth-header-inner {
        grid-template-columns: 1fr;
        min-height: 112px;
    }

    .auth-main {
        padding: 26px 16px 34px;
    }

    .auth-brand {
        justify-content: center;
        text-align: center;
        justify-self: center;
        font-size: 17px;
    }

    .auth-brand span {
        white-space: normal;
        line-height: 1.35;
    }

    .auth-slogan h1 {
        font-size: 36px;
    }

    .login-card {
        grid-template-columns: 1fr;
        transform: none;
    }

    .register-card {
        grid-template-columns: 1fr;
        transform: none;
    }

    .auth-side {
        border-right: 0;
        border-bottom: 1px solid #e6eaf0;
        padding: 26px 22px;
    }

    .auth-side h1 {
        font-size: 26px;
    }

    .auth-side-desc {
        margin-bottom: 18px;
    }

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

    .auth-form-panel,
    .auth-form-panel.wide,
    .account-panel {
        padding: 30px 22px;
    }

    .auth-tabs {
        gap: 34px;
    }

    .auth-tabs a {
        font-size: 19px;
    }

    .auth-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .register-form,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .auth-footer-meta {
        gap: 10px;
    }
}

.monitor-request-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
}

.monitor-request-page .auth-main {
    min-height: calc(100vh - 60px);
    padding-top: 28px;
    padding-bottom: 28px;
}

.monitor-request-page .auth-card {
    max-height: none;
}

.monitor-request-page .auth-form {
    gap: 12px 16px;
}

.monitor-request-page .auth-form-panel.wide {
    padding-top: 34px;
    padding-bottom: 28px;
}

.monitor-request-page .monitor-permission-field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    padding: 10px 12px 12px;
}

.monitor-request-page .monitor-permission-field legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.monitor-request-page .monitor-permission-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    min-height: 24px;
    color: #263f5f;
    font-size: 14px;
    line-height: 1.35;
}

.monitor-request-page .monitor-permission-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--portal-blue);
}

.monitor-request-page .auth-form textarea {
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    color: #101828;
    font: inherit;
    line-height: 1.45;
    resize: vertical;
    outline: none;
    background: rgba(255, 255, 255, 0.96);
}

.monitor-request-page .auth-form textarea:focus {
    border-color: var(--portal-blue-light);
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.14);
}
