/* Resident registration: three-step layout shared by the landing modal and the register page. */
#modal-register.auth-modal {
    width: 100dvw;
    max-width: 100dvw;
    overflow-x: hidden;
}

#modal-register .auth-modal-panel {
    width: min(36rem, calc(100dvw - 2rem));
    max-width: calc(100dvw - 2rem);
}

.eirs-reg {
    color: #0f172a;
    min-width: 0;
}

.eirs-reg__head {
    background: #0c2340;
    color: #fff;
    padding: 20px 24px 18px;
    position: relative;
}

.eirs-reg__head h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.eirs-reg__head p {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.72);
}

.eirs-reg__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.eirs-reg__close:hover { background: rgba(255, 255, 255, 0.24); }

.eirs-reg__body { padding: 8px 20px 22px; }

.eirs-reg__card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    padding: 16px;
    margin-top: 14px;
}

.eirs-reg__card.is-verified {
    border-color: #86efac;
    background: #f8fffb;
}

.eirs-reg__kicker {
    margin: 0 0 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a6b3c;
}

.eirs-reg__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: #0c2340;
    letter-spacing: -0.02em;
}

.eirs-reg__note {
    margin: 0 0 14px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #64748b;
}

.eirs-reg__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.eirs-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.eirs-field input,
.eirs-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 12px;
    font: inherit;
    font-size: 0.9rem;
    color: #0f172a;
    background: #fff;
}

.eirs-field input[readonly],
.eirs-field select:disabled {
    background: #f8fafc;
    color: #334155;
    cursor: default;
}

.eirs-field input:focus,
.eirs-field select:focus {
    outline: none;
    border-color: #1a6b3c;
    box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.14);
}

.eirs-field .eirs-hint {
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: #94a3b8;
}

.eirs-drop {
    border: 1.5px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 26px 16px;
    text-align: center;
    cursor: pointer;
}

.eirs-drop:hover,
.eirs-drop.is-drag { border-color: #1a6b3c; background: #f0fdf4; }

.eirs-drop strong {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    color: #0f172a;
}

.eirs-drop span {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.eirs-drop img {
    max-height: 120px;
    margin: 0 auto;
    border-radius: 10px;
}

.eirs-verified:not(.hidden) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #166534;
    font-size: 0.8rem;
    font-weight: 700;
}

.eirs-submit {
    width: 100%;
    margin-top: 8px;
    border: 0;
    border-radius: 12px;
    background: #0c2340;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 16px;
    cursor: pointer;
}

.eirs-submit:hover { background: #14375f; }

.eirs-reg__switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 0.86rem;
    color: #64748b;
}

.eirs-reg__switch button {
    border: 0;
    background: none;
    color: #1a6b3c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.eirs-pw {
    height: 4px;
    margin-top: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.eirs-pw > div {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s;
}

@media (max-width: 640px) {
    .eirs-reg__grid { grid-template-columns: 1fr; }
    .eirs-reg__body { padding-left: 14px; padding-right: 14px; }
}

/* Standalone register page uses the same cards inside the existing auth box. */
.auth-box.eirs-reg .id-upload-card,
.auth-box.eirs-reg .eirs-reg__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: none;
}

.auth-box.eirs-reg .id-upload-card.verified {
    border-color: #86efac;
    background: #f8fffb;
}

.auth-box.eirs-reg .form-group input,
.auth-box.eirs-reg .form-group select {
    border-radius: 12px;
    padding: 12px 14px;
}

.auth-box.eirs-reg .form-group input[readonly],
.auth-box.eirs-reg .form-group select:disabled {
    background: #f8fafc;
    color: #334155;
}

.auth-box.eirs-reg .dropzone {
    border-radius: 14px;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.auth-box.eirs-reg .btn-submit {
    border-radius: 12px;
    background: #0c2340;
    padding: 14px;
    margin-top: 8px;
}

.auth-box.eirs-reg .btn-submit:hover { background: #14375f; }
