    html, body { height: 100%; }
    body { display: flex; align-items: center; justify-content: center; padding: 24px; }

    .wrap { width: 100%; max-width: 400px; text-align: center; }
    .logo { font-family: var(--font-display); font-size: 3.2rem; letter-spacing: .05em; color: var(--text); text-decoration: none; display: inline-block; }
    .logo:hover { opacity: .85; }
    .sub  { color: var(--muted); margin: 4px 0 32px; }

    .card {
      background: var(--surface); border: var(--card-border);
      border-radius: var(--r); padding: 26px 22px; text-align: left;
      box-shadow: var(--shadow);
    }

    .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
    .tabs.hidden { display: none; }
    .tab {
      flex: 1; width: auto; margin: 0; background: none; border: none;
      border-bottom: 3px solid transparent; box-shadow: none; margin-bottom: -1px;
      color: var(--muted); cursor: pointer; font-family: var(--font-body);
      font-size: .92rem; font-weight: 600; padding: 10px 12px;
      transition: color .15s, border-color .15s;
    }
    .tab:hover:not(:disabled) { transform: none; color: var(--text); }
    .tab.active { color: var(--primary); border-bottom-color: var(--primary); }

    label { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: .06em; }
    input[type=email], input[type=text], input[type=password] {
      width: 100%; padding: 12px 14px; border-radius: var(--r);
      border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
      font-family: var(--font-body); font-size: 1rem;
    }
    input[type=email]:focus, input[type=text]:focus, input[type=password]:focus { outline: none; border-color: var(--primary); }
    #code { letter-spacing: .4em; text-align: center; font-size: 1.4rem; font-weight: 700; }

    button {
      width: 100%; margin-top: 18px; padding: 13px; border: none; border-radius: var(--r);
      background: var(--primary); color: var(--btn-primary-text); font-family: var(--font-body); font-size: 1rem;
      font-weight: 700; cursor: pointer; transition: transform .12s, opacity .12s;
      box-shadow: var(--btn-shadow);
    }
    button:hover:not(:disabled) { transform: translateY(-1px); }
    button:disabled { opacity: .5; cursor: wait; }
    button.secondary {
      background: transparent; color: var(--muted); border: 1px solid var(--border);
      margin-top: 10px; box-shadow: none;
    }

    .msg { margin-top: 14px; font-size: .9rem; min-height: 1.2em; }
    .msg.error { color: var(--danger); }
    .msg.ok    { color: var(--success); }

    .hidden { display: none; }

    .whoami { font-size: 1.05rem; }
    .whoami .name { color: var(--accent-2); font-weight: 700; }
    .back { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .85rem; text-decoration: none; }
    .back:hover { color: var(--text); }

    .divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 18px 0 0; }
    .divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
    #entra-btn { background: var(--accent-2); color: var(--btn-primary-text); margin-top: 12px; }
