﻿/* Arquivo visual separado para facilitar manutencao sem mexer no HTML principal. */
:root { --primary: #e63946; --primary-dark: #b71c1c; }
    * { box-sizing: border-box; margin: 0; padding: 0; }
    html { -webkit-text-size-adjust: 100%; }
    body {
      font-family: 'Segoe UI', sans-serif;
      min-height: 100vh;
      min-height: 100dvh;
      background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
      display: flex; align-items: center; justify-content: center; padding: 20px;
    }
    .container { width: 100%; max-width: 420px; }
    .logo-area { text-align: center; margin-bottom: 32px; color: #fff; }
    .logo-area .icon { font-size: 3rem; margin-bottom: 8px; }
    .logo-area h1 { font-size: 1.6rem; font-weight: 800; }
    .logo-area p { font-size: .9rem; opacity: .7; margin-top: 4px; }

    .card {
      background: #fff; border-radius: 18px; overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    }
    .tabs { display: flex; }
    .tab-btn {
      flex: 1; padding: 16px; border: none; background: #f8f9fa;
      font-size: .95rem; font-weight: 700; cursor: pointer;
      color: #888; transition: all .2s; border-bottom: 3px solid transparent;
    }
    .tab-btn.active { background: #fff; color: var(--primary); border-bottom-color: var(--primary); }

    .form-panel { padding: 28px; display: none; }
    .form-panel.active { display: block; }

    .trial-register-copy {
      display: grid;
      gap: 6px;
      margin-bottom: 16px;
      padding: 14px;
      border-radius: 12px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      color: #1e3a8a;
      line-height: 1.35;
    }
    .trial-register-copy strong { font-size: .96rem; }
    .trial-register-copy span { font-size: .84rem; color: #475569; }

    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-size: .82rem; font-weight: 700; color: #555; margin-bottom: 6px; }
    .optional-label { color: #94a3b8; font-weight: 700; font-size: .72rem; }
    .input-wrap { position: relative; }
    .input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: .9rem; }
    .input-wrap input {
      width: 100%; padding: 12px 14px 12px 40px;
      border: 1.5px solid #e0e0e0; border-radius: 12px;
      font-size: .93rem; outline: none; transition: border-color .2s; font-family: inherit;
    }
    .input-wrap input:focus { border-color: var(--primary); }
    .eye-btn { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #aaa; cursor: pointer; }

    .login-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 2px 0 16px;
    }
    .remember-login {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #4b5563;
      cursor: pointer;
      font-size: .84rem;
      font-weight: 700;
      line-height: 1.25;
    }
    .remember-login input {
      width: 16px;
      height: 16px;
      accent-color: var(--primary);
      flex: 0 0 auto;
    }
    .forget-access-btn {
      border: none;
      background: transparent;
      color: #6b7280;
      cursor: pointer;
      font-family: inherit;
      font-size: .8rem;
      font-weight: 700;
      padding: 4px 0;
      white-space: nowrap;
    }
    .forget-access-btn:hover { color: var(--primary); }

    .submit-btn {
      width: 100%; padding: 14px; background: var(--primary); color: #fff;
      border: none; border-radius: 12px; font-size: 1rem; font-weight: 700;
      cursor: pointer; transition: background .2s; margin-top: 4px;
    }
    .submit-btn:hover { background: var(--primary-dark); }
    .submit-btn:disabled { background: #ccc; cursor: not-allowed; }

    .alert {
      padding: 10px 14px; border-radius: 10px; font-size: .85rem;
      margin-bottom: 14px; display: none;
    }
    .alert.error { background: #fee2e2; color: #7f1d1d; display: block; }
    .alert.success { background: #d1fae5; color: #065f46; display: block; }

    .divider { text-align: center; color: #aaa; font-size: .8rem; margin: 18px 0; position: relative; }
    .divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: #eee; }
    .divider::before { left: 0; } .divider::after { right: 0; }

    .role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
    .role-opt { border: 1.5px solid #e0e0e0; border-radius: 10px; padding: 10px; text-align: center; cursor: pointer; transition: all .2s; font-size: .82rem; }
    .role-opt.selected { border-color: var(--primary); background: rgba(230,57,70,.06); color: var(--primary); font-weight: 700; }
    .role-opt i { display: block; font-size: 1.2rem; margin-bottom: 4px; }

    .spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .footer-note { text-align: center; color: rgba(255,255,255,.5); font-size: .78rem; margin-top: 20px; }

    @media (max-width: 600px) {
      body {
        align-items: flex-start;
        padding: 14px;
      }
      .container {
        max-width: 100%;
      }
      .logo-area {
        margin-bottom: 20px;
      }
      .logo-area .icon { font-size: 2.5rem; }
      .logo-area h1 { font-size: 1.35rem; }
      .form-panel { padding: 20px; }
      .tab-btn { padding: 14px 10px; font-size: .9rem; }
      .submit-btn { min-height: 52px; }
      .login-options { align-items: flex-start; flex-direction: column; }
    }

    @media (max-width: 380px) {
      .form-panel { padding: 16px; }
      .role-select { grid-template-columns: 1fr; }
      .input-wrap input { font-size: .9rem; }
    }
