/* Paleta: Azul primario · Amarillo secundario · Blanco terciario */
:root {
    --blue:        #0D3B8C;
    --blue-mid:    #1A52B3;
    --blue-light:  #F0F4FF;
    --blue-muted:  #A8BDE0;
    --yellow:      #F5C518;
    --yellow-dark: #D4A900;
    --white:       #FFFFFF;
    --gray-border: #D0DAF0;
    --gray-text:   #4A5E82;
    --error:       #C0392B;
    --error-bg:    #FFF9F9;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: var(--blue);
    background-image: url("../../images/_2026ARQ/foto4.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* ── CARD ───────────────────────────────────────────────────────── */
.registro-card {
    background: var(--white);
    border: 2px solid var(--blue);
    border-radius: 0;
    max-width: 520px;
    width: 100%;
    box-shadow: 6px 6px 0px var(--blue);
    overflow: hidden;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
.card-header-custom {
    background: var(--blue);
    padding: 28px 36px 24px;
}

.card-header-custom .tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--yellow);
    display: block;
    margin-bottom: 6px;
}

.card-header-custom h1 {
    color: var(--white);
    font-size: 26px;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.card-header-custom p {
    color: var(--blue-muted);
    font-size: 13px;
    margin: 8px 0 0;
}

/* ── BODY ───────────────────────────────────────────────────────── */
.card-body-custom {
    padding: 32px 36px 36px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    display: block;
    margin-bottom: 6px;
}

/* ── INPUTS ─────────────────────────────────────────────────────── */
.form-control {
    border: 1.5px solid var(--gray-border);
    border-radius: 0 !important;
    height: 44px;
    font-size: 14px;
    color: #0D1A33;
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 10px 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    box-shadow: none !important;
}

.form-control:focus {
    border-color: var(--blue);
    outline: none;
}

.form-control.rfc-field {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-control.error {
    border-color: var(--error);
    background: var(--error-bg);
}

.form-control.valid {
    border-color: var(--blue);
    background: var(--blue-light);
}

.error-msg {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: none;
}

/* ── PASSWORD ───────────────────────────────────────────────────── */
.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-text);
    padding: 0;
    font-size: 16px;
    line-height: 1;
}

.password-wrapper .form-control {
    padding-right: 40px;
}

.strength-bar {
    height: 3px;
    background: var(--gray-border);
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.strength-label {
    font-size: 11px;
    color: var(--gray-text);
    margin-top: 4px;
}

/* ── CAPTCHA ────────────────────────────────────────────────────── */
.captcha-box {
    border: 1.5px solid var(--gray-border);
    padding: 16px;
    margin-bottom: 8px;
    background: var(--blue-light);
}

.captcha-question {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-display {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--blue);
    padding: 8px 14px;
    background: var(--blue-light);
    border: 1.5px dashed var(--blue-muted);
    user-select: none;
    filter: url(#captcha-distort);
    flex-shrink: 0;
    position: relative;
}

.captcha-display canvas {
    display: block;
}

.captcha-input-wrap {
    display: flex;
    gap: 8px;
    flex: 1;
}

.captcha-input-wrap .form-control {
    flex: 1;
}

.btn-refresh {
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1.5px solid var(--gray-border);
    border-radius: 0;
    background: var(--white);
    color: var(--gray-text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.btn-refresh:hover {
    background: var(--yellow);
    border-color: var(--yellow-dark);
    color: var(--blue);
}

/* ── SUBMIT ─────────────────────────────────────────────────────── */
.btn-submit {
    width: 100%;
    height: 48px;
    background: var(--yellow);
    color: var(--blue);
    border: 2px solid var(--yellow);
    border-radius: 0 !important;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
}

.btn-submit:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.btn-submit:disabled {
    background: var(--blue-muted);
    border-color: var(--blue-muted);
    color: var(--white);
    cursor: not-allowed;
}

/* ── DIVIDER ────────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--gray-border);
    margin: 24px 0;
}

/* ── SUCCESS PANEL ──────────────────────────────────────────────── */
.success-panel {
    display: none;
    text-align: center;
    padding: 32px 36px;
    background: var(--blue);
}

.success-panel .icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--yellow);
}

.success-panel h2 {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-panel p {
    color: var(--yellow);
    font-size: 14px;
    margin: 0;
}

/* ── HINTS ──────────────────────────────────────────────────────── */
svg.noise {
    position: absolute;
    width: 0;
    height: 0;
}

.captcha-hint {
    font-size: 11px;
    color: var(--gray-text);
    margin-top: 4px;
}

.rfc-hint {
    font-size: 11px;
    color: var(--gray-text);
    margin-top: 4px;
}

/* ── FOOTER ─────────────────────────────────────────────────────── */
.card-footer-custom {
    background: var(--blue-light);
    border-top: 1.5px solid var(--gray-border);
    padding: 16px 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--blue);
    white-space: nowrap;
}

.footer-contacts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-contacts a {
    font-size: 12px;
    color: var(--gray-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.footer-contacts a i {
    color: var(--yellow-dark);
    font-size: 13px;
}

.footer-contacts a:hover {
    color: var(--blue);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .card-header-custom, .card-body-custom { padding-left: 20px; padding-right: 20px; }
    .captcha-question { flex-direction: column; align-items: flex-start; }
    .card-footer-custom { padding-left: 20px; padding-right: 20px; flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-contacts { flex-direction: column; gap: 8px; }
}
