body#page-restaurar-restablecer-contrasena { margin:0; background:#f7f7f2; color:#232323; }
.gypsy-recovery-shell { box-sizing:border-box; min-height:100vh; min-height:100dvh; padding:32px 20px; display:flex; align-items:center; justify-content:center; }
.gypsy-recovery { box-sizing:border-box; width:100%; max-width:440px; padding:28px 32px 22px; background:#fff; border:1px solid #d9dbd0;  border-radius:12px; }
.gypsy-recovery-logo { display:block; width:96px; height:auto; margin:0 auto 24px; }
.gypsy-recovery h1 { font-size:26px; font-weight:400; line-height:1.2; letter-spacing:-.02em; margin:0 0 12px; text-transform:none; }
.gypsy-recovery-intro { font-size:14px; line-height:1.5; color:#555; margin:0 0 8px; }
.gypsy-recovery-hint { font-size:12px; line-height:1.45; color:#62645b; margin:0 0 20px; }
.gypsy-recovery .mform .fitem.row { display:block; margin:0 0 15px; }
.gypsy-recovery .fitem > .col-md-3,.gypsy-recovery .fitem > .col-md-9 { flex:none; max-width:100%; width:100%; padding:0; }
.gypsy-recovery label { font-size:13px; font-weight:500; margin-bottom:6px; }
.gypsy-recovery .form-control { width:100%; min-height:48px; background:#fff; border:1px solid #d9dbd0; border-radius:6px; font-size:16px; }
.gypsy-recovery .form-control:focus { border-color:#232323; box-shadow:0 0 0 2px rgba(35,35,35,.18); }
.gypsy-recovery .mform hr { display:none; }
.gypsy-recovery input[type="submit"] { width:100%; min-height:48px; margin:3px 0 0; background:#111; border:1px solid #111; color:#fff; font-size:15px; font-weight:500; text-transform:none; letter-spacing:0; border-radius:6px; }
.gypsy-recovery input[type="submit"]:hover { background:#111; }
.gypsy-recovery-back { display:block; text-align:center; padding:10px 4px; color:#333; font-size:12px; font-weight:600; }
.gypsy-recovery a:focus-visible { outline:2px solid #232323; outline-offset:3px; }
.gypsy-recovery-footer { border-top:1px solid #e8e4de; margin-top:12px; padding-top:16px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.gypsy-recovery-footer img { width:96px; height:auto; }
.gypsy-recovery-footer a { font-size:12px; color:#232323; }
.gypsy-recovery .alert { font-size:14px; overflow-wrap:anywhere; }
@media (max-width:520px) { .gypsy-recovery-shell { padding:20px 12px; } .gypsy-recovery { padding:24px; } .gypsy-recovery h1 { font-size:24px; } }

.gypsy-recovery-back { min-height:44px; font-size:13px; font-weight:500; }
.gypsy-recovery-footer a { min-height:44px; display:inline-flex; align-items:center; }
.gypsy-recovery input[type="submit"]:focus-visible { outline:2px solid #232323; outline-offset:3px; }
/* Preserve Moodle policy behavior; make all actions readable on the dark notice. */
body#page-restaurar-restablecer-contrasena .eupopup-container {
    background:#232323; color:#fff; padding:16px 44px; box-sizing:border-box;
    font-size:13px; line-height:1.5; max-height:50dvh; overflow-y:auto;
}
body#page-restaurar-restablecer-contrasena .eupopup-container a {
    color:#fff !important; text-decoration:underline; text-underline-offset:3px;
}
body#page-restaurar-restablecer-contrasena .eupopup-container .eupopup-button {
    display:inline-flex; align-items:center; justify-content:center; min-height:44px;
    padding:10px 24px; margin:8px 0 0; background:#f7f7f2; color:#232323 !important;
    border:1px solid #f7f7f2; border-radius:6px; font-size:14px; font-weight:500;
    text-decoration:none; line-height:1.4;
}
body#page-restaurar-restablecer-contrasena .eupopup-container a:focus-visible {
    outline:2px solid #fff; outline-offset:3px;
}
body#page-restaurar-restablecer-contrasena .eupopup-closebutton {
    width:36px; height:36px; display:flex; align-items:center; justify-content:center;
    top:4px; right:4px; opacity:1; font-size:22px; text-decoration:none !important;
}
body#page-restaurar-restablecer-contrasena:has(.eupopup-container[style*="display: block"]) .gypsy-recovery-shell { padding-bottom:170px; }
@media(max-width:520px) {
    .gypsy-recovery-footer { flex-wrap:wrap; }
    body#page-restaurar-restablecer-contrasena .eupopup-container { padding:14px 36px 14px 16px; }
    body#page-restaurar-restablecer-contrasena:has(.eupopup-container[style*="display: block"]) .gypsy-recovery-shell { padding-bottom:240px; }
}

/* The theme marks these properties important; scope the exception to recovery. */
body#page-restaurar-restablecer-contrasena .gypsy-recovery h1 { font-weight:400 !important; }
body#page-restaurar-restablecer-contrasena .gypsy-recovery .form-control { border-radius:6px !important; }
body#page-restaurar-restablecer-contrasena .gypsy-recovery input[type="submit"] {
    border-radius:6px !important; font-size:15px !important; font-weight:500 !important;
    letter-spacing:0 !important; background:#232323 !important;
}
body#page-restaurar-restablecer-contrasena .gypsy-recovery input[type="submit"]:hover { background:#111 !important; }

body#page-restaurar-restablecer-contrasena .gypsy-recovery .form-control:focus { outline:2px solid #232323 !important; outline-offset:2px; }
