.resident-auth-page {
    min-height: 100vh;
    color: #25324a;
    background: #f1f5f9;
}

.resident-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(47, 111, 237, 0.08), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef3f8 100%);
    pointer-events: none;
}

.resident-auth-page .modal-backdrop {
    background: transparent;
}

.resident-auth-page .modal-backdrop.in {
    opacity: 0;
}

.resident-auth-modal {
    overflow-y: auto;
}

.resident-auth-modal .resident-auth-dialog {
    width: 420px;
    max-width: calc(100% - 30px);
    margin: 54px auto 30px;
}

.resident-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 18px;
    color: #1f2a3d;
    text-decoration: none;
}

.resident-auth-brand:hover,
.resident-auth-brand:focus {
    color: #1f2a3d;
    text-decoration: none;
}

.resident-auth-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: #2f6fed;
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(47, 111, 237, 0.25);
    font-size: 15px;
    font-weight: 700;
}

.resident-auth-brand strong,
.resident-auth-brand small {
    display: block;
}

.resident-auth-brand strong {
    font-size: 13px;
    line-height: 1.2;
}

.resident-auth-brand small {
    margin-top: 2px;
    color: #8a9ab1;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resident-auth-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 11px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03), 0 18px 44px rgba(15, 23, 42, 0.09);
}

.resident-auth-header {
    padding: 28px 30px 22px;
    background: #fff;
    border-bottom: 1px solid #e7ebf1;
}

.resident-auth-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #8292aa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.resident-auth-header .modal-title {
    margin: 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.resident-auth-header p {
    margin: 9px 0 0;
    color: #718198;
    font-size: 11px;
    line-height: 1.6;
}

.resident-auth-body {
    padding: 26px 30px 28px;
}

.resident-auth-form .form-group {
    margin-bottom: 18px;
}

.resident-auth-form .form-group > label {
    margin-bottom: 7px;
    color: #40516a;
    font-size: 10px;
    font-weight: 700;
}

.resident-auth-input {
    display: flex;
    align-items: center;
    height: 42px;
    background: #fff;
    border: 1px solid #d9e1ea;
    border-radius: 5px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.resident-auth-input:focus-within {
    border-color: #80aee0;
    box-shadow: 0 0 0 3px rgba(66, 139, 202, 0.1);
}

.resident-auth-input > span {
    flex: 0 0 40px;
    color: #8a99ad;
    text-align: center;
    font-size: 13px;
}

.resident-auth-input .form-control {
    height: 40px;
    padding: 0 12px 0 0;
    color: #334155;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 12px;
}

.resident-auth-input .form-control:focus {
    box-shadow: none;
}

.resident-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0 20px;
    color: #64748b;
    font-size: 10px;
}

.resident-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-weight: 500;
}

.resident-auth-remember input {
    margin: 0;
    accent-color: #428bca;
}

.resident-auth-options a,
.resident-auth-register a {
    color: #2563eb;
    font-weight: 700;
}

.resident-auth-submit {
    width: 100%;
    height: 42px;
    color: #fff;
    background: #428bca;
    border: 1px solid #357ebd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.14);
    font-size: 12px;
    font-weight: 700;
}

.resident-auth-submit:hover,
.resident-auth-submit:focus {
    color: #fff;
    background: #3276b1;
    border-color: #285e8e;
    box-shadow: 0 4px 10px rgba(50, 118, 177, 0.2);
    outline: none;
}

.resident-auth-register {
    margin: 20px 0 0;
    color: #7b899d;
    font-size: 10px;
    text-align: center;
}

.resident-auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px 14px;
    color: #087f5b;
    background: #f0fbf7;
    border: 1px solid #cceee1;
    border-radius: 7px;
    font-size: 10px;
}

.resident-auth-validation:empty {
    display: none;
}

.resident-auth-form .field-validation-error,
.resident-auth-validation {
    display: block;
    margin-top: 5px;
    color: #dc4c4c;
    font-size: 9px;
}

.resident-auth-footer {
    margin-top: 18px;
    color: #91a0b5;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-align: center;
}

@media (max-width: 480px) {
    .resident-auth-modal .resident-auth-dialog {
        margin-top: 24px;
    }

    .resident-auth-header,
    .resident-auth-body {
        padding-right: 22px;
        padding-left: 22px;
    }

    .resident-auth-header .modal-title {
        font-size: 21px;
    }
}
