@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Inter", sans-serif;
    background: #eef2f7;
    color: #172033;
}

/* PÁGINA COMPLETA */

.register-page {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    overflow: hidden;
}

/* PANEL IZQUIERDO */

.visual-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #004c40, #00825a);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px;
}

.visual-panel::before {
    content: "";
    position: absolute;
    inset: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.visual-card {
    position: relative;
    z-index: 2;
    width: min(430px, 100%);
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 34px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18));
    border: 1px solid rgba(255,255,255,0.20);
    color: white;
    backdrop-filter: blur(12px);
}

.visual-card span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    opacity: 0.82;
    margin-bottom: 16px;
}

.visual-card h1 {
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 18px;
}

.visual-card p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 26px;
}

.visual-card a {
    width: fit-content;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.visual-card a:hover {
    background: white;
    color: #00825a;
}

/* BURBUJAS */

.bg-bubbles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.12);
    bottom: -180px;
    animation: square 25s infinite linear;
}

.bg-bubbles li:nth-child(1) { left: 10%; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 80px; height: 80px; animation-duration: 17s; }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; }
.bg-bubbles li:nth-child(5) { left: 70%; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 120px; height: 120px; animation-delay: 3s; }
.bg-bubbles li:nth-child(7) { left: 32%; width: 150px; height: 150px; animation-delay: 7s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 22px; height: 22px; animation-duration: 40s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 12px; height: 12px; animation-duration: 40s; }
.bg-bubbles li:nth-child(10) { left: 90%; width: 150px; height: 150px; animation-delay: 11s; }

@keyframes square {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-900px) rotate(600deg);
    }
}

/* PANEL FORMULARIO */

.form-panel {
    background:
        radial-gradient(circle at top right, rgba(0, 130, 90, 0.08), transparent 36%),
        #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 42px;
    overflow: hidden;
}

form {
    width: 100%;
    max-width: 900px;
}

.form-header {
    margin-bottom: 10px;
}

.badge {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(0, 130, 90, 0.12);
    color: #01563c;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 5px;
}

.form-header p {
    color: #64748b;
    font-size: 13px;
}

.registration-alert {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

/* GRID */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 14px;
}

.field {
    min-width: 0;
}

.field-wide {
    grid-column: span 2;
}

.field label {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    height: 37px;
    border-radius: 11px;
    border: 1px solid #dbe3ee;
    background: white;
    padding: 0 12px;
    font-size: 12px;
    color: #172033;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus {
    border-color: #00825a;
    box-shadow: 0 0 0 3px rgba(0, 130, 90, 0.12);
}

small {
    display: block;
    min-height: 9px;
    margin-top: 1px;
    font-size: 9px;
    color: #dc2626;
}

/* PASSWORD */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 27px;
    height: 27px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.toggle-password:hover {
    background: #f1f5f9;
}

/* CHECK */

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 9px;
    color: #475569;
    font-size: 11px;
}

.check input {
    width: 14px;
    height: 14px;
    accent-color: #00825a;
    flex: 0 0 auto;
}

.check a {
    color: #01563c;
    font-weight: 800;
    text-decoration: none;
}

/* BOTÓN */

#boton {
    width: 100%;
    height: 41px;
    border: none;
    border-radius: 13px;
    background: linear-gradient(135deg, #01563c, #00825a);
    color: white;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 130, 90, 0.22);
}

#boton:hover {
    transform: translateY(-1px);
}

/* VALIDACIÓN */

.input-success {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

@keyframes vibrar {
    0% { transform: translateX(0); }
    25% { transform: translateX(3px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* ALTURAS PEQUEÑAS EN ESCRITORIO */

@media screen and (max-height: 760px) and (min-width: 1001px) {
    .form-panel {
        padding: 14px 34px;
    }

    .form-header {
        margin-bottom: 7px;
    }

    .badge {
        display: none;
    }

    .form-header h2 {
        font-size: 25px;
    }

    .form-header p {
        font-size: 12px;
    }

    .form-grid {
        gap: 5px 12px;
    }

    .field label {
        font-size: 10px;
        margin-bottom: 3px;
    }

    input,
    select {
        height: 33px;
        font-size: 11px;
        border-radius: 9px;
    }

    small {
        min-height: 7px;
        font-size: 8px;
    }

    .check {
        margin: 5px 0 6px;
        font-size: 10px;
    }

    #boton {
        height: 36px;
        font-size: 12px;
    }
}

/* RESPONSIVE */

@media screen and (max-width: 1000px) {
    .register-page {
        grid-template-columns: 1fr;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .visual-panel {
        min-height: 260px;
        padding: 28px;
    }

    .visual-card {
        min-height: 210px;
        max-width: 720px;
    }

    .visual-card h1 {
        font-size: 32px;
    }

    .form-panel {
        padding: 26px;
        overflow: visible;
    }

    .form-header h2 {
        font-size: 28px;
    }

    input,
    select {
        height: 40px;
    }
}

@media screen and (max-width: 620px) {
    .visual-panel {
        padding: 16px;
    }

    .visual-card {
        padding: 22px;
    }

    .visual-card h1 {
        font-size: 27px;
    }

    .form-panel {
        padding: 18px;
    }

    .form-header h2 {
        font-size: 26px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: span 1;
    }

    input,
    select {
        height: 40px;
    }
}
