* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.registro-page {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    color: #0f1f3d;
    background:
        radial-gradient(circle at 8% 24%, rgba(21, 84, 204, .10) 0 18%, transparent 19%),
        radial-gradient(circle at 96% 76%, rgba(21, 84, 204, .08) 0 18%, transparent 19%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f9fbff 100%);
}

.registro-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(203, 213, 225, .72);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(18px);
}

.registro-navbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.registro-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #071936;
    font-size: clamp(1.2rem, 2vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -.045em;
    text-decoration: none;
}

.registro-brand img,
.registro-brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: contain;
}

.registro-brand-mark {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1554cc, #2378ff);
    color: #fff;
}

.registro-navlinks {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.registro-navlinks a {
    color: #5f6f8d;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

.registro-navlinks a:hover {
    color: #1554cc;
}

.registro-login-btn {
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1554cc, #2378ff);
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(21, 84, 204, .25);
}

.registro-main {
    padding: clamp(24px, 5vw, 44px) 16px 28px;
}

.registro-card {
    width: min(1020px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(219, 228, 239, .88);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(15, 35, 70, .12);
    padding: clamp(26px, 4vw, 48px);
}

.registro-card-head {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(219, 228, 239, .88);
    margin-bottom: 24px;
}

.registro-pill {
    display: inline-flex;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1554cc, #267dff);
    color: #fff;
    font-weight: 900;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 10px 22px rgba(21, 84, 204, .2);
}

.registro-card h1 {
    margin: 18px 0 10px;
    max-width: 850px;
    color: #071936;
    font-size: clamp(2rem, 5vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.registro-card p {
    margin: 0;
    max-width: 720px;
    color: #53637f;
    font-size: clamp(.98rem, 1.8vw, 1.1rem);
    line-height: 1.65;
}

.registro-form {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px 22px;
}

.registro-field {
    grid-column: span 4;
}

.registro-field-wide {
    grid-column: span 6;
}

.registro-field-full {
    grid-column: 1 / -1;
}

.registro-field label {
    display: block;
    margin: 0 0 8px;
    color: #13264a;
    font-weight: 800;
    font-size: .92rem;
}

.registro-field input {
    width: 100%;
    min-height: 54px;
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    background: #fff;
    padding: 0 16px;
    color: #0f1f3d;
    font: inherit;
    font-weight: 600;
    outline: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .03), inset 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.registro-field input:focus {
    border-color: #1554cc;
    box-shadow: 0 0 0 4px rgba(21, 84, 204, .10);
    transform: translateY(-1px);
}

.registro-field input::placeholder {
    color: #8a99b2;
    font-weight: 500;
}

.registro-input-disabled {
    color: #40506a !important;
    background: linear-gradient(180deg, #f8fafc, #eef3f9) !important;
    cursor: not-allowed;
}

.registro-submit {
    grid-column: 1 / -1;
    min-height: 56px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1452d4 0%, #2584ff 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(21, 84, 204, .24);
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
}

.registro-submit:hover {
    box-shadow: 0 18px 36px rgba(21, 84, 204, .32);
    transform: translateY(-1px);
}

.registro-alert {
    margin-bottom: 22px;
    border-radius: 16px;
    padding: 16px 18px;
    display: grid;
    gap: 8px;
}

.registro-alert-success {
    border: 1px solid rgba(22, 163, 74, .22);
    background: rgba(22, 163, 74, .08);
    color: #14532d;
}

.registro-alert-error {
    border: 1px solid rgba(220, 38, 38, .22);
    background: rgba(220, 38, 38, .08);
    color: #7f1d1d;
}

.registro-alert-error ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.registro-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.registro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 900;
    text-decoration: none;
}

.registro-btn-primary {
    background: #1554cc;
    color: #fff;
}

.registro-btn-secondary {
    background: #eaf1ff;
    color: #1554cc;
}

.registro-footer {
    border-top: 1px solid rgba(203, 213, 225, .72);
    background: rgba(255, 255, 255, .88);
    padding: 22px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    color: #5f6f8d;
    text-align: center;
}

.registro-footer p {
    margin: 0;
}

.registro-footer a {
    color: #1554cc;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 900px) {
    .registro-navbar {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .registro-navlinks {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: .92rem;
    }

    .registro-field,
    .registro-field-wide,
    .registro-field-full {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .registro-navbar {
        width: min(100% - 24px, 1180px);
    }

    .registro-brand img,
    .registro-brand-mark {
        width: 50px;
        height: 50px;
    }

    .registro-navlinks {
        align-items: stretch;
    }

    .registro-navlinks a {
        font-size: .9rem;
    }

    .registro-login-btn {
        min-height: 40px;
        padding: 10px 14px;
    }

    .registro-main {
        padding: 18px 12px;
    }

    .registro-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .registro-card h1 {
        font-size: 2rem;
    }

    .registro-form {
        gap: 14px;
    }
}
