    :root {
        --aw-primary: #053048;
        --aw-primary-soft: #0b4967;
        --aw-secondary: #018e80;
        --aw-aqua: #17b7c9;
        --aw-aqua-light: #d0edfc;
        --aw-green-light: #f4fff1;

        --aw-bg: #f4f8fb;
        --aw-white: #ffffff;
        --aw-text: #102a3a;
        --aw-muted: #6d7f8c;
        --aw-soft-muted: #8fa1ad;

        --aw-danger: #d93025;
        --aw-danger-bg: #fff2f1;

        --aw-border: rgba(5, 48, 72, 0.11);
        --aw-border-strong: rgba(5, 48, 72, 0.18);

        --aw-shadow-sm: 0 8px 22px rgba(5, 48, 72, 0.08);
        --aw-shadow-md: 0 18px 48px rgba(5, 48, 72, 0.14);
        --aw-shadow-lg: 0 28px 80px rgba(5, 48, 72, 0.20);

        --aw-radius-sm: 12px;
        --aw-radius-md: 18px;
        --aw-radius-lg: 28px;
        --aw-radius-xl: 34px;

        --aw-transition: 220ms ease;
        --aw-transition-fast: 160ms ease;
    }

    /* ------------------------------
   Reset fino / compatibilidad
------------------------------ */

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

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

    body {
        margin: 0;
        color: var(--aw-text);
        background: var(--aw-bg);
        -webkit-font-smoothing: antialiased;
        text-rendering: geometricPrecision;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    button,
    input,
    select,
    textarea {
        font-family: inherit;
    }

    button {
        cursor: pointer;
    }

    /* ------------------------------
   Fondo general
------------------------------ */

    #colorPage.page {
        position: relative;
        min-height: 100vh;
        overflow: hidden;
        padding: 34px 18px;
        background:
            radial-gradient(circle at 18% 12%, rgba(23, 183, 201, 0.22) 0, transparent 32%),
            radial-gradient(circle at 82% 18%, rgba(1, 142, 128, 0.18) 0, transparent 30%),
            linear-gradient(135deg, #f4fff1 0%, #eefaff 42%, #f8fbfd 100%);
    }

    #colorPage.page::before {
        content: "";
        position: absolute;
        inset: -160px -120px auto auto;
        width: 380px;
        height: 380px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(5, 48, 72, 0.16), rgba(23, 183, 201, 0.10));
        filter: blur(8px);
        opacity: 0.9;
        pointer-events: none;
    }

    #colorPage.page::after {
        content: "";
        position: absolute;
        left: -160px;
        bottom: -160px;
        width: 410px;
        height: 410px;
        border-radius: 999px;
        background: linear-gradient(135deg, rgba(1, 142, 128, 0.14), rgba(208, 237, 252, 0.55));
        filter: blur(10px);
        pointer-events: none;
    }

    .watermark-bg {
        position: absolute;
        inset: 0;
        z-index: 0;
        pointer-events: none;
        opacity: 0.56;
        background-image:
            linear-gradient(rgba(5, 48, 72, 0.035) 1px, transparent 1px),
            linear-gradient(90deg, rgba(5, 48, 72, 0.035) 1px, transparent 1px);
        background-size: 34px 34px;
        mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
    }

    /* ------------------------------
   Centrado / layout
------------------------------ */

    .vertical-align {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .vertical-align-middle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .page-content {
        position: relative;
        z-index: 10;
        width: 100%;
    }

    /* ------------------------------
   Card principal
------------------------------ */

    .login-card-modern {
        position: relative;
        width: min(100%, 510px);
        margin: 0 auto;
        border: 1px solid rgba(255, 255, 255, 0.86);
        border-radius: var(--aw-radius-xl);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84)),
            radial-gradient(circle at top left, rgba(23, 183, 201, 0.12), transparent 42%);
        box-shadow: var(--aw-shadow-lg);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        overflow: hidden;
    }

    .login-card-modern::before {
        content: "";
        position: absolute;
        inset: 0;
        height: 7px;
        background: linear-gradient(90deg, var(--aw-primary) 0%, var(--aw-secondary) 48%, var(--aw-aqua) 100%);
    }

    .login-card-modern::after {
        content: "";
        position: absolute;
        top: 18px;
        right: 18px;
        width: 78px;
        height: 78px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(23, 183, 201, 0.16), transparent 67%);
        pointer-events: none;
    }

    .login-card-modern .panel-body {
        position: relative;
        z-index: 2;
        padding: 34px 34px 28px !important;
    }

    /* ------------------------------
   Marca
------------------------------ */

    .brand-logo {
        margin-bottom: 24px;
    }

    .brand-img {
        width: 72px;
        height: 72px;
        object-fit: contain;
        display: inline-block;
        padding: 10px;
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 255, 241, 0.88));
        border: 1px solid rgba(5, 48, 72, 0.10);
        box-shadow: 0 16px 34px rgba(5, 48, 72, 0.13);
    }

    .login-title {
        margin: 16px 0 8px;
        color: var(--aw-primary);
        font-family: "Montserrat", "Inter", sans-serif;
        font-size: clamp(1.42rem, 3.4vw, 1.9rem);
        font-weight: 800;
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .brand-subtext {
        max-width: 350px;
        margin: 0 auto;
        color: var(--aw-muted);
        font-size: 0.94rem;
        line-height: 1.55;
    }

    /* ------------------------------
   Formulario
------------------------------ */

    .form-modern {
        margin-top: 10px;
    }

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

    .aw-field-label {
        display: block;
        margin: 0 0 10px;
        color: var(--aw-primary);
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    .input-group-modern {
        position: relative;
    }

    .input-group-modern .form-control {
        width: 100%;
        height: 58px;
        padding: 20px 16px 8px;
        color: var(--aw-text);
        font-size: 1rem;
        font-weight: 650;
        line-height: 1;
        border: 1px solid var(--aw-border);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 24px rgba(5, 48, 72, 0.055);
        outline: none;
        transition:
            border-color var(--aw-transition),
            box-shadow var(--aw-transition),
            background var(--aw-transition),
            transform var(--aw-transition-fast);
    }

    .input-group-modern .form-control:hover {
        border-color: rgba(23, 183, 201, 0.36);
        background: #fff;
    }

    .input-group-modern .form-control:focus {
        border-color: rgba(1, 142, 128, 0.72);
        background: #fff;
        box-shadow:
            0 0 0 4px rgba(23, 183, 201, 0.12),
            0 14px 30px rgba(5, 48, 72, 0.08);
    }

    .input-group-modern .form-control.is-invalid {
        border-color: rgba(217, 48, 37, 0.76);
        background: var(--aw-danger-bg);
        box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.08);
    }

    .input-group-modern label {
        position: absolute;
        top: 18px;
        left: 16px;
        color: var(--aw-soft-muted);
        font-size: 0.95rem;
        font-weight: 650;
        pointer-events: none;
        transform-origin: left top;
        transition:
            transform var(--aw-transition),
            color var(--aw-transition),
            opacity var(--aw-transition);
    }

    .input-group-modern .form-control:focus+label,
    .input-group-modern .form-control:not(:placeholder-shown)+label,
    .input-group-modern .form-control:valid+label {
        color: var(--aw-secondary);
        transform: translateY(-10px) scale(0.76);
    }

    /* ------------------------------
   Selector visual de perfiles
------------------------------ */

    .aw-profile-group {
        margin-bottom: 20px;
    }

    .aw-profile-picker {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .aw-profile-option {
        position: relative;
        isolation: isolate;
        display: flex;
        align-items: center;
        gap: 11px;
        min-height: 86px;
        width: 100%;
        padding: 13px 13px 13px 12px;
        text-align: left;
        border: 1px solid var(--aw-border);
        border-radius: 20px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 254, 0.90));
        box-shadow: 0 10px 24px rgba(5, 48, 72, 0.055);
        outline: none;
        overflow: hidden;
        transition:
            transform var(--aw-transition-fast),
            border-color var(--aw-transition),
            box-shadow var(--aw-transition),
            background var(--aw-transition);
    }

    .aw-profile-option::before {
        content: "";
        position: absolute;
        inset: auto -30px -45px auto;
        width: 95px;
        height: 95px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(23, 183, 201, 0.16), transparent 68%);
        opacity: 0;
        transition: opacity var(--aw-transition);
        z-index: -1;
    }

    .aw-profile-option:hover {
        transform: translateY(-2px);
        border-color: rgba(23, 183, 201, 0.36);
        box-shadow: 0 16px 34px rgba(5, 48, 72, 0.10);
    }

    .aw-profile-option:focus-visible {
        border-color: rgba(1, 142, 128, 0.74);
        box-shadow:
            0 0 0 4px rgba(23, 183, 201, 0.14),
            0 16px 34px rgba(5, 48, 72, 0.10);
    }

    .aw-profile-option.is-selected {
        border-color: rgba(1, 142, 128, 0.72);
        background:
            linear-gradient(135deg, rgba(244, 255, 241, 0.98), rgba(208, 237, 252, 0.78));
        box-shadow:
            0 0 0 4px rgba(23, 183, 201, 0.10),
            0 18px 42px rgba(1, 142, 128, 0.16);
    }

    .aw-profile-option.is-selected::before {
        opacity: 1;
    }

    .aw-profile-icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 15px;
        color: var(--aw-primary);
        background: rgba(5, 48, 72, 0.06);
        border: 1px solid rgba(5, 48, 72, 0.07);
        transition:
            color var(--aw-transition),
            background var(--aw-transition),
            transform var(--aw-transition);
    }

    .aw-profile-icon i {
        font-size: 1rem;
    }

    .aw-profile-option.is-selected .aw-profile-icon {
        color: #fff;
        background: linear-gradient(135deg, var(--aw-primary), var(--aw-secondary));
        transform: scale(1.04);
        box-shadow: 0 12px 22px rgba(5, 48, 72, 0.16);
    }

    .aw-profile-info {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .aw-profile-info strong {
        color: var(--aw-primary);
        font-size: 0.88rem;
        font-weight: 850;
        line-height: 1.14;
        letter-spacing: -0.025em;
    }

    .aw-profile-info small {
        color: var(--aw-muted);
        font-size: 0.73rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .aw-profile-check {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 22px;
        height: 22px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        color: #fff;
        background: linear-gradient(135deg, var(--aw-secondary), var(--aw-aqua));
        box-shadow: 0 8px 16px rgba(1, 142, 128, 0.24);
        opacity: 0;
        transform: scale(0.7);
        transition:
            opacity var(--aw-transition-fast),
            transform var(--aw-transition-fast);
    }

    .aw-profile-check i {
        font-size: 0.68rem;
    }

    .aw-profile-option.is-selected .aw-profile-check {
        opacity: 1;
        transform: scale(1);
    }

    /* Caja de perfil seleccionado */

    .aw-selected-profile {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 11px;
        padding: 10px 12px;
        color: var(--aw-primary);
        font-size: 0.82rem;
        font-weight: 750;
        border: 1px solid rgba(1, 142, 128, 0.18);
        border-radius: 14px;
        background: rgba(244, 255, 241, 0.82);
    }

    .aw-selected-profile i {
        color: var(--aw-secondary);
    }

    /* ------------------------------
   Errores
------------------------------ */

    .aw-field-error {
        display: block;
        margin-top: 8px;
        color: var(--aw-danger);
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .aw-field-error.is-visible {
        animation: awErrorShake 260ms ease;
    }

    @keyframes awErrorShake {
        0% {
            transform: translateX(0);
        }

        28% {
            transform: translateX(-4px);
        }

        56% {
            transform: translateX(4px);
        }

        100% {
            transform: translateX(0);
        }
    }

    /* ------------------------------
   Botón principal
------------------------------ */

    .at-btn-main {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 56px;
        width: 100%;
        padding: 14px 20px;
        border: 0;
        border-radius: 18px;
        color: #fff !important;
        font-size: 0.98rem;
        font-weight: 850;
        letter-spacing: -0.01em;
        background: linear-gradient(135deg, var(--aw-primary) 0%, var(--aw-secondary) 58%, var(--aw-aqua) 100%);
        box-shadow:
            0 18px 36px rgba(5, 48, 72, 0.20),
            inset 0 1px 0 rgba(255, 255, 255, 0.26);
        overflow: hidden;
        transition:
            transform var(--aw-transition-fast),
            box-shadow var(--aw-transition),
            filter var(--aw-transition);
    }

    .at-btn-main::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
        transform: translateX(-110%);
        transition: transform 650ms ease;
    }

    .at-btn-main:hover {
        transform: translateY(-2px);
        box-shadow:
            0 22px 44px rgba(5, 48, 72, 0.26),
            inset 0 1px 0 rgba(255, 255, 255, 0.26);
        filter: saturate(1.04);
    }

    .at-btn-main:hover::before {
        transform: translateX(110%);
    }

    .at-btn-main:active {
        transform: translateY(0);
    }

    .at-btn-main i {
        font-size: 0.78rem;
        transition: transform var(--aw-transition);
    }

    .at-btn-main:hover i {
        transform: translateX(3px);
    }

    /* ------------------------------
   Caja de registro / login
------------------------------ */

    .registration-box {
        margin-top: 22px;
        padding: 18px;
        border-radius: 22px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 251, 0.72));
        border: 1px solid rgba(5, 48, 72, 0.08);
    }

    .registration-title {
        margin: 0 0 12px;
        color: var(--aw-muted);
        font-size: 0.88rem;
        font-weight: 750;
        text-align: center;
    }

    .at-btn-outline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 50px;
        width: 100%;
        padding: 12px 18px;
        color: var(--aw-primary) !important;
        font-size: 0.92rem;
        font-weight: 850;
        border: 1px solid rgba(5, 48, 72, 0.15);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.76);
        box-shadow: 0 10px 22px rgba(5, 48, 72, 0.055);
        transition:
            transform var(--aw-transition-fast),
            border-color var(--aw-transition),
            box-shadow var(--aw-transition),
            background var(--aw-transition),
            color var(--aw-transition);
    }

    .at-btn-outline:hover {
        color: #fff !important;
        border-color: transparent;
        background: linear-gradient(135deg, var(--aw-primary), var(--aw-secondary));
        box-shadow: 0 16px 34px rgba(5, 48, 72, 0.18);
        transform: translateY(-2px);
    }

    .at-btn-outline i {
        color: var(--aw-aqua);
        transition: color var(--aw-transition);
    }

    .at-btn-outline:hover i {
        color: #fff;
    }

    /* ------------------------------
   Footer
------------------------------ */

    .at-login-footer {
        margin-top: 22px;
        text-align: center;
    }

    .quote-day {
        max-width: 380px;
        margin: 0 auto 14px;
        color: var(--aw-muted);
        font-size: 0.78rem;
        line-height: 1.5;
    }

    .italic {
        font-style: italic;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .footer-links a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--aw-primary);
        font-size: 0.78rem;
        font-weight: 750;
        opacity: 0.86;
        transition:
            opacity var(--aw-transition-fast),
            color var(--aw-transition-fast);
    }

    .footer-links a:hover {
        color: var(--aw-secondary);
        opacity: 1;
    }

    .footer-copy {
        margin: 10px 0 0;
        color: var(--aw-soft-muted);
        font-size: 0.75rem;
        font-weight: 650;
    }

    .mt-10 {
        margin-top: 10px;
    }

    .text-smaller {
        font-size: 0.78rem;
    }

    /* ------------------------------
   Utilidades Bootstrap-friendly
------------------------------ */

    .btn-block {
        display: flex;
        width: 100%;
    }

    .text-center {
        text-align: center;
    }

    .text-left {
        text-align: left;
    }

    .p-0 {
        padding: 0 !important;
    }

    .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -6px;
        margin-right: -6px;
    }

    .row>[class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    @media (min-width: 768px) {
        .col-md-12 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

    /* ------------------------------
   Alertas del servidor
------------------------------ */

    .alert,
    .alertDiv,
    .alert-danger,
    .alert-success,
    .alert-warning,
    .alert-info {
        border-radius: 16px !important;
        border: 1px solid rgba(5, 48, 72, 0.10) !important;
        box-shadow: 0 10px 22px rgba(5, 48, 72, 0.06);
        font-size: 0.86rem;
        font-weight: 650;
        line-height: 1.45;
    }

    .alert-success {
        color: #07594f !important;
        background: rgba(244, 255, 241, 0.88) !important;
        border-color: rgba(1, 142, 128, 0.18) !important;
    }

    .alert-danger {
        color: #9d1c14 !important;
        background: rgba(255, 242, 241, 0.92) !important;
        border-color: rgba(217, 48, 37, 0.16) !important;
    }

    .alert-warning {
        color: #745100 !important;
        background: rgba(255, 250, 230, 0.92) !important;
        border-color: rgba(221, 166, 36, 0.18) !important;
    }

    .alert-info {
        color: #06445f !important;
        background: rgba(208, 237, 252, 0.52) !important;
        border-color: rgba(23, 183, 201, 0.18) !important;
    }

    /* ------------------------------
   Responsive
------------------------------ */

    @media (max-width: 575.98px) {
        #colorPage.page {
            align-items: flex-start;
            padding: 18px 12px;
        }

        .page-content {
            align-items: flex-start;
        }

        .login-card-modern {
            width: 100%;
            border-radius: 28px;
        }

        .login-card-modern .panel-body {
            padding: 28px 18px 22px !important;
        }

        .brand-img {
            width: 64px;
            height: 64px;
            border-radius: 21px;
        }

        .login-title {
            margin-top: 14px;
        }

        .brand-subtext {
            font-size: 0.88rem;
        }

        .aw-profile-picker {
            grid-template-columns: 1fr;
            gap: 9px;
        }

        .aw-profile-option {
            min-height: 78px;
            border-radius: 18px;
            padding: 12px;
        }

        .aw-profile-icon {
            width: 40px;
            height: 40px;
            flex-basis: 40px;
        }

        .aw-profile-info strong {
            font-size: 0.9rem;
        }

        .aw-profile-info small {
            font-size: 0.74rem;
        }

        .input-group-modern .form-control {
            height: 56px;
            border-radius: 17px;
            font-size: 0.98rem;
        }

        .at-btn-main {
            min-height: 54px;
            border-radius: 17px;
        }

        .registration-box {
            padding: 15px;
            border-radius: 20px;
        }

        .quote-day {
            font-size: 0.74rem;
        }
    }

    @media (max-width: 380px) {
        .login-card-modern .panel-body {
            padding-left: 14px !important;
            padding-right: 14px !important;
        }

        .aw-profile-option {
            gap: 9px;
        }

        .aw-profile-icon {
            width: 38px;
            height: 38px;
            flex-basis: 38px;
            border-radius: 14px;
        }

        .aw-profile-info strong {
            font-size: 0.84rem;
        }

        .aw-profile-info small {
            font-size: 0.7rem;
        }
    }

    /* ------------------------------
   Desktop fino
------------------------------ */

    @media (min-width: 992px) {
        .login-card-modern {
            transform: translateY(-4px);
        }

        .login-card-modern .panel-body {
            padding: 38px 38px 30px !important;
        }
    }

    /* ------------------------------
   Animaciones suaves
------------------------------ */

    .login-card-modern {
        animation: awCardIn 520ms cubic-bezier(.2, .8, .2, 1) both;
    }

    .brand-img {
        animation: awLogoIn 640ms cubic-bezier(.2, .8, .2, 1) 80ms both;
    }

    .aw-profile-option {
        animation: awOptionIn 460ms cubic-bezier(.2, .8, .2, 1) both;
    }

    .aw-profile-option:nth-child(1) {
        animation-delay: 80ms;
    }

    .aw-profile-option:nth-child(2) {
        animation-delay: 130ms;
    }

    .aw-profile-option:nth-child(3) {
        animation-delay: 180ms;
    }

    .aw-profile-option:nth-child(4) {
        animation-delay: 230ms;
    }

    @keyframes awCardIn {
        from {
            opacity: 0;
            transform: translateY(18px) scale(0.985);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes awLogoIn {
        from {
            opacity: 0;
            transform: translateY(8px) scale(0.92);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes awOptionIn {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ------------------------------
   Accesibilidad / reducción movimiento
------------------------------ */

    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.001ms !important;
            animation-iteration-count: 1 !important;
            scroll-behavior: auto !important;
            transition-duration: 0.001ms !important;
        }
    }

    /* ------------------------------
   Compatibilidad cuando hidden existe
------------------------------ */

    [hidden] {
        display: none !important;
    }
