/* Estilos de la pantalla de acceso */
:root {
      --primary-color: #ed1c24;
      --primary-color-dark: #c81019;
      --accent-color: #ed1c24;
      --background-color: #f4f4f5;
      --input-bg: #f8fafc;
      --text-color: #1e293b;
      --error-bg: #fdeceb;
      --error-text: #b91c1c;
      --radius: 12px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: var(--tv-font, 'Inter', 'Segoe UI', sans-serif);
      background: #373739;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      padding: 20px;
    }

    .login-shell {
      width: 100%;
      max-width: 400px;
    }

    .login-logo {
      display: flex;
      justify-content: center;
      margin-bottom: 22px;
    }

    .login-logo img {
      height: 52px;
      width: auto;
    }

    .login-container {
      background: #fff;
      padding: 36px 32px;
      border-radius: 18px;
      box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.45);
      width: 100%;
      position: relative;
      overflow: hidden;
    }

    .login-container::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 5px;
      background: var(--accent-color);
    }

    h2 {
      text-align: center;
      color: var(--text-color);
      margin: 6px 0 4px;
      font-size: 22px;
      font-weight: 800;
    }

    .login-subtitle {
      text-align: center;
      color: #64748b;
      font-size: 13.5px;
      margin-bottom: 26px;
    }

    label.field-label {
      display: block;
      font-size: 12.5px;
      font-weight: 600;
      color: #475569;
      margin-bottom: 6px;
    }

    input[type="text"],
    input[type="password"] {
      width: 100%;
      padding: 13px 14px;
      margin-bottom: 16px;
      border: 1px solid #dde3ea;
      border-radius: var(--radius);
      font-size: 15px;
      font-family: inherit;
      background-color: var(--input-bg);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

    input[type="text"]:focus,
    input[type="password"]:focus {
      outline: none;
      border-color: var(--primary-color);
      background-color: #fff;
      box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
    }

    .login-note {
      color: #94a3b8;
      font-size: 12px;
      display: block;
      margin: -8px 0 18px;
    }

    button {
      width: 100%;
      padding: 14px;
      background: var(--primary-color);
      border: none;
      border-radius: var(--radius);
      color: #fff;
      font-weight: 700;
      font-size: 15px;
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease;
      box-shadow: 0 4px 10px rgba(30, 58, 138, 0.2);
    }

    .login-container button[type="submit"] {
      background-color: #ed1c24;
      color: #fff;
    }

    button:hover {
      background-color: #c81019;
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(30, 58, 138, 0.25);
    }

    button:active {
      transform: translateY(0);
    }

    button:focus-visible {
      outline: 3px solid rgba(237, 28, 36, .35);
      outline-offset: 3px;
    }

    .error-msg {
      background-color: var(--error-bg);
      color: var(--error-text);
      padding: 12px 14px;
      border-radius: var(--radius);
      margin-bottom: 18px;
      font-size: 13.5px;
      font-weight: 600;
      text-align: center;
    }

    .login-footer {
      text-align: center;
      margin-top: 22px;
      font-size: 12px;
      color: rgba(255, 255, 255, 0.65);
    }

    @media (max-width: 480px) {
      .login-container {
        padding: 28px 22px;
      }

      h2 {
        font-size: 20px;
      }

      input, button {
        font-size: 14px;
      }
    }
