* {
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: radial-gradient(circle at center, #ffffff 0%, #f0f2f5 100%);
      padding: 20px 0;
    }

    @keyframes fadeInSlide {
      from {
        opacity: 0;
        transform: translateY(15px);
      }

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

    .login-container {
      background: #ffffff;
      padding: 40px;
      border-radius: 20px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
      width: 100%;
      max-width: 380px;
      text-align: center;
      animation: fadeInSlide 0.4s ease-out forwards;
    }

    .brand-logo-text {
      font-size: 28px;
      font-weight: 800;
      color: #da291c;
      margin-bottom: 5px;
      letter-spacing: -0.5px;
    }

    .subtitle {
      font-size: 12px;
      color: #999;
      margin-bottom: 25px;
      font-weight: 500;
    }

    .input-group {
      position: relative;
      margin-bottom: 12px;
    }

    .input-icon-left {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #b0b0b0;
      font-size: 18px;
      pointer-events: none;
    }

    .input-icon-right {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: #b0b0b0;
      font-size: 18px;
      cursor: pointer;
      background: none;
      border: none;
      padding: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      outline: none;
    }

    .input-icon-right:hover {
      color: #777;
    }

    .uclaro-input {
      width: 100%;
      padding: 14px 20px 14px 45px;
      border-radius: 50px;
      border: 1px solid #eee;
      background: #fff;
      font-size: 16px;
      /* Evita auto-zoom en iOS */
      color: #333;
      transition: all 0.2s;
      -webkit-appearance: none;
      appearance: none;
    }

    .uclaro-input::placeholder {
      color: #bbb;
    }

    .uclaro-input:focus {
      outline: none;
      border-color: #da291c;
      box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.1);
    }

    .uclaro-input[readonly] {
      background: #fafafa;
      color: #888;
      cursor: not-allowed;
    }

    .uclaro-input.has-right-icon {
      padding-right: 45px;
    }

    input[type="password"]::-ms-reveal,
    input[type="password"]::-ms-clear {
      display: none;
    }

    select.uclaro-input {
      appearance: none;
      background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23b0b0b0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
      background-repeat: no-repeat;
      background-position: right 16px top 50%;
      background-size: 10px auto;
    }

    .btn-login {
      width: 100%;
      min-height: 42px;
      padding: 0 18px;
      border-radius: 50px;
      border: none;
      background: #da291c;
      color: #fff;
      font-weight: 700;
      font-size: 13px;
      line-height: 1;
      letter-spacing: 0.4px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 12px;
      transition: background 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 15px rgba(218, 41, 28, 0.25);
    }

    .btn-login:hover {
      background: #c32418;
      box-shadow: 0 6px 20px rgba(218, 41, 28, 0.35);
    }

    .btn-login:disabled {
      opacity: 0.6;
      cursor: not-allowed;
    }

    .register-link {
      display: inline-block;
      margin-top: 25px;
      color: #da291c;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: color 0.2s;
      padding: 10px;
      /* Mayor área de toque */
    }

    .register-link:hover {
      color: #a81c12;
      text-decoration: underline;
    }

    .footer-text {
      margin-top: 30px;
      font-size: 11px;
      color: #bbb;
    }

    .alert-error {
      background: #ffebee;
      color: #c62828;
      padding: 10px;
      border-radius: 8px;
      font-size: 12px;
      margin-bottom: 20px;
      display: none;
      border: 1px solid #ffcdd2;
    }


    .auth-title {
      margin: 0 0 20px;
      color: #333;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.25;
    }

    .policies-group {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin: 15px 0 20px 8px;
      font-size: 13px;
      text-align: left;
    }

    .checkbox-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #555;
      cursor: pointer;
    }

    .checkbox-wrap input {
      accent-color: #da291c;
      width: 14px;
      height: 14px;
      margin: 0;
      cursor: pointer;
    }

    .policy-link {
      background: none;
      border: none;
      padding: 8px 0;
      color: #da291c;
      font-size: 11px;
      font-weight: 600;
      text-decoration: underline;
      cursor: pointer;
      margin-left: 22px;
      margin-top: 4px;
    }

    .policy-link:hover {
      color: #a81c12;
    }

    /* Modal Siuc */
    .siuc-modal {
      position: fixed;
      inset: 0;
      z-index: 3000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }

    .siuc-modal.d-none {
      display: none !important;
    }

    .siuc-modal__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .4);
      backdrop-filter: blur(2px);
    }

    .siuc-modal__dialog {
      position: relative;
      width: 100%;
      max-width: 600px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    }

    .siuc-modal__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      border-bottom: 1px solid #eee;
    }

    .siuc-modal__title {
      margin: 0;
      font-size: 15px;
      font-weight: 700;
      color: #333;
    }

    .siuc-modal__close {
      width: 30px;
      height: 30px;
      border: none;
      border-radius: 8px;
      background: #f5f5f5;
      color: #555;
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .siuc-modal__close:hover {
      background: #e0e0e0;
    }

    .siuc-modal__body {
      padding: 20px;
      overflow-y: auto;
      font-size: 12px;
      color: #555;
      line-height: 1.6;
      text-align: left;
    }

    .siuc-modal__body h6 {
      color: #333;
      font-weight: 700;
      margin-top: 0;
      margin-bottom: 10px;
      font-size: 13px;
    }

    .siuc-modal__body p {
      margin-bottom: 12px;
    }
    .siuc-modal__body ul {
      margin-bottom: 12px;
      padding-left: 20px;
      list-style-type: none;
    }
    .siuc-modal__body li {
      margin-bottom: 6px;
    }

    .siuc-modal__footer {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 16px 20px;
      border-top: 1px solid #eee;
      background: #fafafa;
    }

    .btn-modal-close {
      padding: 8px 16px;
      border-radius: 8px;
      border: 1px solid #ddd;
      background: #fff;
      color: #555;
      font-weight: 600;
      font-size: 12px;
      cursor: pointer;
    }

    .btn-modal-close:hover {
      background: #f0f0f0;
    }

    .btn-modal-accept {
      padding: 8px 16px;
      border-radius: 8px;
      border: none;
      background: #da291c;
      color: #fff;
      font-weight: 600;
      font-size: 12px;
      cursor: pointer;
    }

    .btn-modal-accept:hover {
      background: #c32418;
    }

    .d-none {
      display: none !important;
    }

    .spinner-border {
      display: inline-block;
      width: 1rem;
      height: 1rem;
      border: 0.15em solid currentColor;
      border-right-color: transparent;
      border-radius: 50%;
      animation: spinner-border .75s linear infinite;
    }

    @keyframes spinner-border {
      to {
        transform: rotate(360deg);
      }
    }

    @media (max-width: 480px) {
      .login-container {
        padding: 40px 24px;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        width: 100%;
        max-width: 100%;
      }

      body {
        background: #ffffff;
        align-items: flex-start;
        padding-top: 8vh;
      }

      .brand-logo-text {
        font-size: 36px;
      }

      .siuc-modal__dialog {
        max-height: 100vh;
        border-radius: 0;
      }
    }
