
:root {
    --primary: #1769e8;
    --primary-dark: #1053c5;
    --sidebar: #102b59;
    --text: #18243a;
    --muted: #748198;
    --border: #dfe6f0;
    --surface: #ffffff;
    --background: #f3f6fb;
    --danger: #b42318;
    --success: #067647;
    --radius: 16px;
}

/* =====================================================
   LOGO
===================================================== */

.logo {
    display: flex;

    align-items: center;

    gap: 12px;

    min-width: 250px;
}

.logo-image {
    width: 50px;
    height: 50px;

    display: flex;

    justify-content: center;
    align-items: center;

    font-size: 38px;
}

.logo-text {
    display: flex;

    flex-direction: column;
}

.logo-text strong {
    font-size: 25px;

    letter-spacing: -1px;


}

.logo-text strong span {
    color: var(--primary);
}

.logo-text small {
    margin-top: -2px;


    font-size: 12px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--background);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 98px 24px;
}

.auth-container {
    width: 100%;
    max-width: 800px;
    min-height: 650px;


    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(220, 229, 242, 0.9);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(26, 51, 93, 0.12);
}

/* Panel lateral */

.auth-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 42px 38px 28px;
    overflow: hidden;
    color: white;
    background:
        radial-gradient(circle at 100% 0%, rgba(57, 131, 255, 0.3), transparent 34%),
        linear-gradient(150deg, #173c78 0%, #102b59 60%, #0d2147 100%);
}

.auth-sidebar::before,
.auth-sidebar::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-sidebar::before {
    width: 350px;
    height: 350px;
    right: -210px;
    bottom: 60px;
}

.auth-sidebar::after {
    width: 450px;
    height: 450px;
    right: -260px;
    bottom: 10px;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
}

.brand-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    flex-shrink: 0;
    color: #fff;
    background: linear-gradient(145deg, #4d91ff, #1769e8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.brand-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-name strong,
.mobile-brand strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.brand-name strong span,
.mobile-brand strong span {
    color: #72a9ff;
}

.brand-name small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.sidebar-content {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 52px 0 42px;
}

.eyebrow,
.heading-label {
    display: inline-block;
    color: #7bb4ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.auth-sidebar h1 {
    max-width: 390px;
    margin: 18px 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.16;
    letter-spacing: -1.4px;
}

.auth-sidebar h1 span {
    display: block;
    color: #82b6ff;
}

.sidebar-content > p {
    max-width: 365px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.8;
}

.benefits {
    display: grid;
    gap: 24px;
    margin-top: 42px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 14px;
}

.benefit-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    place-items: center;
    color: #a7cbff;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.benefit-icon svg {
    width: 23px;
    height: 23px;
}

.benefit strong {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.benefit p {
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
    line-height: 1.6;
}

.sidebar-footer {
    position: relative;
    z-index: 1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
}

/* Formulario */

.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
}

.auth-card {
    width: 100%;
    max-width: 410px;
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 36px;
}

.mobile-brand .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 21px;
}

.auth-heading {
    margin-bottom: 30px;
}

.auth-heading .heading-label {
    color: var(--primary);
    font-size: 10px;
}

.auth-heading h2 {
    margin: 11px 0 9px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.1px;
}

.auth-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* Mensajes de Laravel */

.alert {
    margin-bottom: 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.alert-success {
    color: var(--success);
    background: #ecfdf3;
    border-color: #abefc6;
}

.alert-error {
    color: var(--danger);
    background: #fff1f0;
    border-color: #fecdca;
}

/* Campos */

.auth-form {
    display: grid;
    gap: 22px;
}

.form-group {
    min-width: 0;
}

.form-group > label,
.label-row > label {
    display: block;
    margin-bottom: 9px;
    color: #27364d;
    font-size: 12px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 51px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 232, 0.1);
}

.input-icon {
    width: 19px;
    height: 19px;
    margin-left: 15px;
    flex-shrink: 0;
    color: #91a0b5;
}

.input-wrapper input {
    width: 100%;
    min-width: 0;
    height: 49px;
    padding: 0 13px;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    font-size: 13px;
}

.input-wrapper input::placeholder {
    color: #a2adbd;
}

.input-wrapper input:focus-visible {
    outline: none;
}

.password-toggle {
    display: grid;
    width: 45px;
    height: 48px;
    flex-shrink: 0;
    place-items: center;
    border: 0;
    border-radius: 0 10px 10px 0;
    color: #8a98ac;
    background: transparent;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.field-error {
    display: block;
    min-height: 0;
    margin-top: 0;
    color: var(--danger);
    font-size: 11px;
}

.field-error:not(:empty) {
    margin-top: 7px;
}

.input-wrapper.has-error {
    border-color: #d92d20;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.label-row > label {
    margin-bottom: 9px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -5px;
}

.remember-option {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #65738a;
    font-size: 12px;
    cursor: pointer;
}

.remember-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Botones */

.btn-submit {
    display: flex;
    width: 100%;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: linear-gradient(110deg, #2377f5, #125bd5);
    box-shadow: 0 6px 15px rgba(23, 105, 232, 0.2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(23, 105, 232, 0.27);
}

.btn-submit:focus-visible,
.btn-register:focus-visible,
.password-toggle:focus-visible {
    outline: 3px solid rgba(23, 105, 232, 0.35);
    outline-offset: 3px;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.button-arrow {
    width: 18px;
    height: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 27px 0 20px;
    color: #8793a6;
    font-size: 11px;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e8edf4;
}

.btn-register, .btn-login {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #cbd8eb;
    border-radius: 10px;
    color: #2459a7;
    background: white;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, border-color 0.2s;
}

.btn-register:hover, .btn-login:hover {
    border-color: #8eb6f3;
    background: #f5f9ff;
}

.terms-text {
    margin: 24px 0 0;
    color: #98a3b3;
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

/* Adaptación a tablets y móviles */

@media (max-width: 900px) {
    .auth-page {
        padding: 24px 18px;
    }

    .auth-container {
        max-width: 720px;
        grid-template-columns: 0.8fr 1.2fr;
    }

    .auth-sidebar {
        padding: 32px 25px 24px;
    }

    .auth-sidebar h1 {
        font-size: 30px;
    }

    .auth-content {
        padding: 40px 30px;
    }

    .brand-name strong {
        font-size: 18px;
    }

    .benefits {
        gap: 20px;
        margin-top: 32px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        min-height: 100vh;
        align-items: flex-start;
        padding: 16px 12px;
    }

    .auth-container {
        min-height: auto;
        display: block;
        border-radius: 18px;
    }

    .auth-sidebar {
        display: none;
    }

    .auth-content {
        display: block;
        padding: 28px 22px 30px;
    }

    .mobile-brand {
        display: flex;
        margin-bottom: 34px;
    }

    .auth-heading {
        margin-bottom: 25px;
    }

    .auth-heading h2 {
        font-size: 29px;
    }

    .auth-form {
        gap: 20px;
    }

    .terms-text {
        margin-top: 22px;
    }
}

@media (max-width: 360px) {
    .auth-content {
        padding: 24px 16px;
    }

    .auth-heading h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


.d-none {
    display: none;
}


.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-mascot {
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.register-eyebrow {
    display: block;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.register-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.25;
}

.register-header p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.register-form {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
}

.optional {
    font-weight: 400;
    color: var(--muted);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 19px;
    height: 19px;
    color: #8197b8;
    pointer-events: none;
}

.input-wrapper input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 48px 0 55px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

.input-wrapper input::placeholder {
    color: #91a5c5;
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 101, 232, .10);
}

.input-wrapper input.input-invalid {
    border-color: var(--danger);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 4px;
    border: 0;
    background: transparent;
    color: #8197b8;
    cursor: pointer;
}

.toggle-password svg {
    width: 21px;
    height: 21px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    line-height: 1.5;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
}

.terms-checkbox input {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, box-shadow .2s, transform .2s;
}

.btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(110deg, #2878f5, #1059db);
    box-shadow: 0 8px 18px rgba(23, 101, 232, .20);
}

.btn-primary:hover {
    background: linear-gradient(110deg, #1769e9, #0b4ec5);
    box-shadow: 0 10px 22px rgba(23, 101, 232, .27);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary svg {
    width: 19px;
    height: 19px;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
}

.form-divider span {
    flex: 1;
    height: 1px;
    background: #e1e9f5;
}

.form-divider p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.btn-secondary {
    min-height: 45px;
    border: 1px solid #c6d8f5;
    color: var(--primary);
    background: #fff;
}

.btn-secondary:hover {
    background: #f5f8ff;
    border-color: var(--primary);
}

.privacy-note {
    margin: 18px 0 0;
    color: #8a9cba;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

.alert {
    max-width: 450px;
    margin: 0 auto 22px;
    padding: 12px 15px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.6;
}

.alert ul {
    margin: 7px 0 0;
    padding-left: 18px;
}

.alert-error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

.alert-success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
}

@media (max-width: 600px) {
    .register-page {
        padding: 16px 12px;
        align-items: flex-start;
    }

    .register-card {
        padding: 30px 20px 24px;
        border-radius: 18px;
    }

    .register-header {
        margin-bottom: 26px;
    }

    .register-header h1 {
        font-size: 27px;
    }

    .register-header p {
        font-size: 13px;
    }

    .register-mascot {
        font-size: 38px;
    }

    .form-group {
        margin-bottom: 18px;
    }
}