 :root {
     --bg: #0a0f18;
     --surface: rgba(255, 255, 255, .08);
     --border: rgba(255, 255, 255, .16);
     --txt: #e8edf3;
     --muted: #9aa8b6;
     --brand: #7cf9d2;
     --brand-2: #6fa8ff;
     --ok: #18d47b;
     --warn: #fbbf24;
     --danger: #ff6b6b;
     --shadow: 0 8px 26px rgba(0, 0, 0, .45);
     --radius-xl: 18px;
     --radius-lg: 14px;
     --radius-md: 10px;
     --ring: 0 0 0 2px rgba(124, 249, 210, .35);
     --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial;
     --safe-top: env(safe-area-inset-top);
     --safe-bottom: env(safe-area-inset-bottom);
     --txt-input: #000;
 }


 * {
     box-sizing: border-box
 }

 html,
 body {
     height: 100%
 }

 body {
     margin: 0;
     font-family: var(--font);
     color: var(--txt);
     background: #f8fafc;
     background: linear-gradient(-45deg, #7cf9d2, #6fa8ff, #f8fafc, #e3f2fd);
     background-size: 400% 400%;
     animation: gradient 15s ease infinite;
     display: grid;
     place-items: center;
 }


 @keyframes gradient {
     0% {
         background-position: 0% 50%;
     }

     50% {
         background-position: 100% 50%;
     }

     100% {
         background-position: 0% 50%;
     }
 }

 /* MOBILE-FIRST LAYOUT */
 .wrap {
     width: 100%;
     max-width: 460px;
     padding: max(16px, var(--safe-top)) 16px max(16px, var(--safe-bottom));
 }

 .card {
     background: #fff;
     /* en lugar de transparente */
     border-radius: var(--radius-xl);
     box-shadow: var(--shadow);
     padding: 18px;
 }


 header {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 8px;
 }


 .logo {
     width: 44px;
     height: 44px;
     border-radius: 14px;
     display: grid;
     place-items: center;
     background: #fff;
     /* o transparente */
     overflow: hidden;
     /* recorta si la imagen se pasa */
 }

 .logo img {
     max-width: 100%;
     max-height: 100%;
     object-fit: contain;
     /* que no se deforme */
 }

 .title {
     font-size: 1.25rem;
     font-weight: 800;
     line-height: 1.1
 }

 .subtitle {
     color: var(--muted);
     font-size: .95rem;
 }

 .toggle {
     position: absolute;
     right: 18px;
     top: 18px;
     display: flex;
     align-items: center;
     gap: 8px;
     color: var(--muted);
     font-size: .9rem;
 }

 .toggle input {
     appearance: none;
     width: 48px;
     height: 28px;
     border-radius: 999px;
     background: rgba(255, 255, 255, .14);
     position: relative;
     cursor: pointer;
     outline: none;
 }

 .toggle input::after {
     content: "";
     position: absolute;
     top: 3px;
     left: 3px;
     width: 22px;
     height: 22px;
     border-radius: 999px;
     background: #644040;
     box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
     transition: transform .2s;
 }

 .toggle input:checked {
     background: linear-gradient(135deg, var(--brand), var(--brand-2));
 }

 .toggle input:checked::after {
     transform: translateX(20px);
 }

 .helper {
     color: var(--muted);
     margin: 4px 0 14px;
     font-size: .95rem;
 }

 form {
     display: grid;
     gap: 12px;
 }

 .field {
     display: grid;
     gap: 8px;
 }

 label {
     font-size: .95rem;
     color: var(--muted);
 }

 .control {
     display: flex;
     align-items: center;
     gap: 10px;
     background: rgba(255, 255, 255, .06);
     border: 1px solid var(--border);
     border-radius: var(--radius-lg);
     padding: 14px 14px;
     transition: box-shadow .2s, border-color .2s, background .2s;
     min-height: 54px;
     /* mobile touch target */
 }

 .control:focus-within {
     border-color: rgba(124, 249, 210, .6);
     box-shadow: var(--ring);
     background: rgba(255, 255, 255, .10);
 }

 input[type="text"],
 input[type="password"] {
     flex: 1;
     border: 0;
     outline: 0;
     background: transparent;
     color: var(--txt-input);
     /* negro */
     font-size: 1.02rem;
     min-width: 0;
 }

 .icon {
     opacity: .85;
     flex: 0 0 auto;
 }

 .row {
     display: flex;
     gap: 10px;
     flex-wrap: wrap;
 }

 .row>* {
     flex: 1 1 160px;
 }

 .btn {
     border: 0;
     border-radius: 14px;
     padding: 14px 16px;
     font-weight: 800;
     font-size: 1.02rem;
     cursor: pointer;
     transition: transform .04s ease, box-shadow .2s ease, opacity .2s;
     width: 100%;
 }

 .btn-primary {
     background: linear-gradient(135deg, var(--brand), var(--brand-2));
     color: #0a0f18;
     box-shadow: 0 10px 18px rgba(111, 168, 255, .25);
 }

 .btn:active {
     transform: translateY(1px);
 }

 .actions {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 12px;
     margin: 2px 4px 0;
 }

 .actions label {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: .95rem;
 }

 .notif {
     display: none;
     border: 1px solid var(--border);
     background: rgba(255, 255, 255, .06);
     padding: 12px;
     border-radius: 12px;
     font-size: .95rem;
     margin-top: 4px;
 }

 .notif.show {
     display: block;
 }

 .strength {
     display: flex;
     align-items: center;
     gap: 8px;
     font-size: .9rem;
     color: var(--muted);
 }

 .bar {
     height: 8px;
     flex: 1;
     background: rgba(255, 255, 255, .10);
     border-radius: 999px;
     overflow: hidden;
 }

 .bar>span {
     display: block;
     height: 100%;
     width: 0;
     background: var(--danger);
     transition: width .3s, background .3s;
 }

 footer {
     text-align: center;
     color: var(--muted);
     font-size: .9rem;
     margin-top: 14px;
 }





 /****/