/* =========================================================
   REGISTRO CLIENTE
   CUPOTECH SOLUTIONS
========================================================= */

:root {
    --blue-dark: #06386c;
    --blue: #0877b8;
    --cyan: #00a5d9;

    --orange: #f28c28;

    --text: #173e5c;
    --muted: #718899;

    --background: #f2f8fc;
    --white: #ffffff;

    --border: #d7e5ef;
    --border-light: #e8eff4;

    --success: #16805e;
    --success-bg: #e7f7f0;

    --danger: #bd4646;
    --danger-bg: #fff0f0;

    --shadow:
            0 24px 65px rgba(18, 72, 108, 0.13);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    font-family: "Inter", sans-serif;

    color: var(--text);

    background: var(--background);
}

button,
input,
select,
a {
    font: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.register-header {
    min-height: 78px;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 20;

    background: rgba(255, 255, 255, 0.97);

    border-top: 3px solid var(--cyan);
    border-bottom: 1px solid var(--border);
}

.register-header-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


/* =========================================================
   BRAND
========================================================= */

.register-brand {
    display: flex;
    align-items: center;

    gap: 11px;

    color: var(--blue-dark);

    text-decoration: none;
}

.register-brand img {
    width: 46px;
    height: 46px;

    object-fit: contain;
}

.register-brand-text {
    display: flex;
    flex-direction: column;
}

.register-brand strong {
    font-size: 16px;
    font-weight: 800;
}

.register-brand span {
    margin-top: 3px;

    color: #748c9e;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.register-header-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}

.header-login-link,
.header-web-link {
    min-height: 41px;

    padding: 0 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    transition:
            color 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease,
            transform 0.2s ease;
}

.header-login-link {
    color: #557185;

    background: #f8fafc;

    border: 1px solid #dde8ef;
}

.header-web-link {
    color: #0878ad;

    background: #edf8fd;

    border: 1px solid #cae5f2;
}

.header-login-link:hover,
.header-web-link:hover {
    transform: translateY(-1px);
}

.header-login-link:hover {
    color: var(--blue);

    background: #edf7fb;
}

.header-web-link:hover {
    color: white;

    background: var(--blue);

    border-color: var(--blue);
}


/* =========================================================
   MAIN
========================================================= */

.register-main {
    position: relative;

    flex: 1;

    padding: 48px 20px 55px;

    overflow: hidden;

    background:
            linear-gradient(
                    180deg,
                    #eef8fd 0%,
                    #f8fbfd 46%,
                    #f2f8fc 100%
            );
}


/* =========================================================
   WATERMARK
========================================================= */

.background-logo {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    pointer-events: none;
}

.background-logo img {
    width: min(700px, 62vw);

    opacity: 0.035;

    transform:
            translateY(110px)
            rotate(-7deg);

    filter: grayscale(15%);
}


/* =========================================================
   ORBS
========================================================= */

.background-orb {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.background-orb-left {
    width: 520px;
    height: 520px;

    left: -280px;
    top: 120px;

    background:
            radial-gradient(
                    circle,
                    rgba(0, 165, 217, 0.10),
                    rgba(0, 165, 217, 0) 70%
            );
}

.background-orb-right {
    width: 510px;
    height: 510px;

    right: -280px;
    bottom: -130px;

    background:
            radial-gradient(
                    circle,
                    rgba(242, 140, 40, 0.07),
                    rgba(242, 140, 40, 0) 70%
            );
}


/* =========================================================
   CONTENIDO
========================================================= */

.register-content {
    width: min(900px, 100%);

    margin: 0 auto;

    position: relative;
    z-index: 5;
}


/* =========================================================
   INTRO
========================================================= */

.register-intro {
    max-width: 690px;

    margin: 0 auto 28px;

    text-align: center;
}

.register-intro h1 {
    margin: 0;

    color: var(--blue-dark);

    font-size: clamp(30px, 4vw, 39px);
    font-weight: 800;

    line-height: 1.16;
}

.register-intro h1 span {
    color: #0798cf;
}

.register-intro p {
    max-width: 610px;

    margin: 12px auto 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   CARD
========================================================= */

.register-card {
    position: relative;

    overflow: hidden;

    padding: 38px 44px 41px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    backdrop-filter: blur(10px);
}

.register-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 70px;
    right: 70px;

    height: 4px;

    border-radius: 0 0 10px 10px;

    background:
            linear-gradient(
                    90deg,
                    var(--orange),
                    var(--cyan)
            );
}


/* =========================================================
   CARD HEADER
========================================================= */

.register-card-header {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 31px;
}

.register-card-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: #087fb8;

    background: #e8f7fd;

    font-size: 19px;
}

.register-card-header > div:last-child {
    display: flex;
    flex-direction: column;
}

.register-eyebrow {
    margin-bottom: 4px;

    color: #0782bb;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.register-card-header h2 {
    margin: 0;

    color: var(--blue-dark);

    font-size: 24px;
    font-weight: 800;
}

.register-card-header p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   ALERT
========================================================= */

.register-alert {
    margin-bottom: 24px;

    padding: 14px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border-radius: 10px;

    font-size: 12px;
    line-height: 1.5;
}

.register-alert > i {
    margin-top: 2px;
}

.register-alert > div {
    display: flex;
    flex-direction: column;
}

.register-alert strong {
    margin-bottom: 2px;
}

.register-alert-error {
    color: var(--danger);

    background: var(--danger-bg);

    border: 1px solid #f0cece;
}


/* =========================================================
   SECCIONES
========================================================= */

.form-section {
    padding: 28px 0;

    border-top: 1px solid var(--border-light);
}

.form-section:first-of-type {
    padding-top: 0;

    border-top: 0;
}

.form-section-title {
    margin-bottom: 22px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.section-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 11px;

    font-size: 14px;
}

.identification-icon {
    color: #087fb7;

    background: #e7f6fc;
}

.contact-icon {
    color: #16805f;

    background: #e6f7f0;
}

.security-icon {
    color: #c96d16;

    background: #fff0dd;
}

.form-section-title > div:last-child {
    display: flex;
    flex-direction: column;
}

.form-section-title strong {
    color: #274d67;

    font-size: 14px;
}

.form-section-title span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 12px;
}


/* =========================================================
   CONDITIONAL SECTIONS
========================================================= */

.conditional-fields {
    margin-top: 22px;

    padding-top: 20px;

    border-top: 1px dashed #dbe7ee;
}

.conditional-fields.hidden-field {
    display: none;
}

.conditional-heading {
    margin-bottom: 15px;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #537187;

    font-size: 12px;
    font-weight: 700;
}

.conditional-heading i {
    color: #0781b9;
}

.company-heading i {
    color: #c8781d;
}


/* =========================================================
   GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}

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


/* =========================================================
   FIELDS
========================================================= */

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: #426178;

    font-size: 12px;
    font-weight: 700;
}

.form-control {
    position: relative;

    min-height: 50px;

    display: flex;
    align-items: center;

    overflow: hidden;

    border-radius: 10px;

    background: #fbfdff;

    border: 1px solid #d4e3ed;

    transition:
            border-color 0.2s ease,
            background 0.2s ease,
            box-shadow 0.2s ease;
}

.form-control:focus-within {
    background: white;

    border-color: #53b7df;

    box-shadow:
            0 0 0 3px rgba(0, 163, 215, 0.08);
}

.form-control > i {
    position: absolute;

    left: 15px;

    color: #859aa9;

    font-size: 13px;
}

.form-control input,
.form-control select {
    width: 100%;
    height: 50px;

    padding: 0 14px 0 42px;

    color: #294f69;

    background: transparent;

    border: 0;
    outline: 0;

    font-size: 13px;
}

.form-control select {
    cursor: pointer;
}

.form-control input::placeholder {
    color: #a5b4bf;
}

.field-help {
    display: block;

    margin-top: 7px;

    color: #879aa8;

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   PASSWORD
========================================================= */

.password-control input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;

    right: 8px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    padding: 0;

    color: #8197a6;

    background: transparent;

    border: 0;
    border-radius: 8px;

    cursor: pointer;

    transition:
            color 0.2s ease,
            background 0.2s ease;
}

.password-toggle:hover {
    color: var(--blue);

    background: #edf7fb;
}


/* =========================================================
   PASSWORD REQUIREMENTS
========================================================= */

.password-requirements {
    margin-top: 18px;

    padding: 16px;

    border-radius: 11px;

    color: #607a8c;

    background: #f4f9fc;

    border: 1px solid #dfebf2;
}

.password-requirements-header {
    margin-bottom: 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    color: #527084;

    font-size: 12px;
}

.password-requirements-header i {
    color: #0783bc;
}

.password-requirements-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 9px 18px;
}

.password-requirements-grid span {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #718694;

    font-size: 11px;
}

.password-requirements-grid span i {
    color: #b6c5cf;

    font-size: 6px;
}

.password-requirements-grid span.valid {
    color: var(--success);

    font-weight: 600;
}

.password-requirements-grid span.valid i {
    color: var(--success);
}


/* =========================================================
   VALIDATION
========================================================= */

.validation-message {
    min-height: 22px;

    margin-top: 10px;

    color: var(--danger);

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}


/* =========================================================
   PRIVACY
========================================================= */

.privacy-check {
    margin-top: 10px;

    padding: 15px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    border-radius: 11px;

    color: #647d8f;

    background: #f7fafc;

    border: 1px solid #e2ebf1;

    cursor: pointer;
}

.privacy-check input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.privacy-checkbox {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    margin-top: 1px;

    display: grid;
    place-items: center;

    color: transparent;

    background: white;

    border: 1px solid #c7d8e3;
    border-radius: 5px;

    font-size: 9px;

    transition:
            color 0.2s ease,
            background 0.2s ease,
            border-color 0.2s ease;
}

.privacy-check input:checked + .privacy-checkbox {
    color: white;

    background: var(--blue);

    border-color: var(--blue);
}

.privacy-text {
    font-size: 11px;

    line-height: 1.55;
}


/* =========================================================
   BUTTON
========================================================= */

.register-button {
    width: 100%;
    min-height: 50px;

    margin-top: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    color: white;

    background:
            linear-gradient(
                    135deg,
                    #0867a7,
                    #00a3d8
            );

    border: 0;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
            0 10px 22px rgba(0, 133, 189, 0.20);

    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.register-button:hover {
    transform: translateY(-1px);

    box-shadow:
            0 14px 28px rgba(0, 133, 189, 0.27);
}


/* =========================================================
   LOGIN ACCESS
========================================================= */

.login-access {
    margin-top: 20px;

    display: flex;
    justify-content: center;

    gap: 6px;

    color: var(--muted);

    font-size: 12px;
}

.login-access a {
    color: var(--blue);

    font-weight: 800;

    text-decoration: none;
}

.login-access a:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.register-footer {
    min-height: 60px;

    display: flex;
    align-items: center;

    position: relative;
    z-index: 20;

    background: white;

    border-top: 1px solid var(--border);
}

.register-footer-inner {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #8194a2;

    font-size: 11px;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 8px;
}

.footer-brand img {
    width: 27px;
    height: 27px;

    object-fit: contain;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 720px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-field-full {
        grid-column: auto;
    }

    .password-requirements-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 540px) {

    .register-header-inner {
        width: calc(100% - 24px);
    }

    .register-brand strong {
        font-size: 14px;
    }

    .register-brand span {
        font-size: 9px;
    }

    .register-brand img {
        width: 40px;
        height: 40px;
    }

    .header-login-link span,
    .header-web-link span {
        display: none;
    }

    .header-login-link,
    .header-web-link {
        width: 40px;

        padding: 0;
    }

    .register-main {
        padding: 35px 12px;
    }

    .register-intro h1 {
        font-size: 28px;
    }

    .register-intro p {
        font-size: 12px;
    }

    .register-card {
        padding: 30px 22px;
    }

    .register-card-header {
        align-items: flex-start;
    }

    .register-footer-inner {
        width: calc(100% - 24px);

        padding: 14px 0;

        flex-direction: column;

        justify-content: center;

        gap: 8px;
    }

    .background-logo img {
        width: 90vw;

        opacity: 0.028;
    }
}

/* =========================================================
   REGISTRO CON GOOGLE
========================================================= */

.google-register-icon {
    color: #ffffff;
    background: linear-gradient(
            135deg,
            #4285f4 0%,
            #1a73e8 100%
    );
}


/* =========================================================
   PERFIL VERIFICADO
========================================================= */

.google-profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;

    margin: 0 0 26px;
    padding: 18px 20px;

    border: 1px solid #d8e7fb;
    border-radius: 16px;

    background: linear-gradient(
            135deg,
            #f8fbff 0%,
            #eef6ff 100%
    );

    box-shadow: 0 10px 26px rgba(18, 73, 130, 0.08);
}


.google-profile-avatar {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border: 3px solid #ffffff;
    border-radius: 50%;

    overflow: hidden;

    background: #e8f1fc;

    box-shadow: 0 5px 14px rgba(23, 85, 150, 0.16);
}


.google-profile-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.google-profile-avatar-fallback {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #1769aa;
    font-size: 22px;
}


.google-profile-information {
    min-width: 0;

    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}


.google-profile-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #18864b;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


.google-profile-information strong {
    color: #082f5b;

    font-size: 17px;
    font-weight: 800;

    overflow-wrap: anywhere;
}


.google-profile-information small {
    color: #607891;

    font-size: 13px;

    overflow-wrap: anywhere;
}


.google-verification-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #dbe7f5;
    border-radius: 12px;

    color: #4285f4;
    background: #ffffff;

    font-size: 19px;
}


/* =========================================================
   CORREO VERIFICADO
========================================================= */

.google-email-control {
    background: #f4f8fc;
}


.google-email-control input[readonly] {
    color: #49647e;
    background: transparent;
    cursor: not-allowed;
}


.google-email-control input[readonly]:focus {
    box-shadow: none;
}


.google-email-help {
    display: flex;
    align-items: flex-start;
    gap: 6px;

    color: #58728d;
}


.google-email-help i {
    margin-top: 2px;

    color: #18864b;
}


/* =========================================================
   INFORMACIÓN DE SEGURIDAD
========================================================= */

.google-security-section {
    border-color: #d8e7fb;

    background: linear-gradient(
            135deg,
            rgba(241, 247, 255, 0.78) 0%,
            rgba(255, 255, 255, 0.96) 100%
    );
}


.google-security-message {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 16px 18px;

    border: 1px solid #dce9f7;
    border-radius: 14px;

    color: #173f68;
    background: #ffffff;
}


.google-security-message > i {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    color: #18864b;
    background: #e8f7ef;
}


.google-security-message div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.google-security-message strong {
    color: #0d345e;

    font-size: 13px;
    line-height: 1.45;
}


.google-security-message span {
    color: #667d94;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   BOTÓN DE REGISTRO CON GOOGLE
========================================================= */

.google-register-button {
    background: linear-gradient(
            135deg,
            #1a73e8 0%,
            #1769c2 100%
    );

    box-shadow: 0 10px 24px rgba(26, 115, 232, 0.24);
}


.google-register-button:hover:not(:disabled) {
    transform: translateY(-2px);

    background: linear-gradient(
            135deg,
            #1769c2 0%,
            #1257a6 100%
    );

    box-shadow: 0 14px 30px rgba(26, 115, 232, 0.3);
}


.google-register-button:disabled,
.google-register-button.is-loading {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}


/* =========================================================
   MENSAJES DE VALIDACIÓN DEL REGISTRO GOOGLE
========================================================= */

#googleRegisterValidationMessage {
    display: none;

    margin: 0 0 18px;
    padding: 13px 15px;

    border-radius: 12px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}


#googleRegisterValidationMessage.validation-message-visible {
    display: block;
}


#googleRegisterValidationMessage.validation-message-error {
    border: 1px solid #f5c2c7;

    color: #9b2430;
    background: #fff1f2;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 640px) {

    .google-profile-summary {
        align-items: flex-start;

        padding: 16px;
    }


    .google-profile-avatar {
        width: 50px;
        height: 50px;
    }


    .google-verification-icon {
        display: none;
    }


    .google-profile-information strong {
        font-size: 15px;
    }


    .google-security-message {
        padding: 14px;
    }
}