/* /assets/css/register.css   */


    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --teal: #00B8A9;
      --coral: #F6416C;
      --cream: #F8F3D4;
      --navy: #2D3561;
      --white: #FFFFFF;
      --gray: #6B7280;
      --light: #F8FAFC;
      --border: #E5E7EB;
      --teal-light: rgba(0,184,169,0.08);
      --coral-light: rgba(246,65,108,0.08);
      --success: #10B981;
      --error: #EF4444;
    }

    body {
      font-family: 'Archivo', sans-serif;
      background: var(--light);
      color: var(--navy);
      min-height: 100vh;
      display: flex;
    }

    h1, h2, h3 {
      font-family: 'DM Serif Display', serif;
    }

    .sidebar {
      width: 400px;
      min-height: 100vh;
      flex-shrink: 0;
      background: linear-gradient(160deg, var(--navy) 0%, #1a2a5e 50%, #0d6e68 100%);
      padding: 48px 40px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: hidden;
    }

    .sidebar::after {
      content: '';
      position: absolute;
      bottom: -100px;
      right: -100px;
      width: 350px;
      height: 350px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(246,65,108,0.2), transparent 70%);
      pointer-events: none;
    }

    .sidebar-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }

    .sidebar-logo svg {
      width: 40px;
      height: 40px;
    }

    .sidebar-logo-text {
      font-family: 'DM Serif Display', serif;
      font-size: 1.4rem;
      color: var(--white);
    }

    .sidebar-content {
      position: relative;
      z-index: 1;
    }

    .sidebar-content h2 {
      font-size: 2rem;
      color: var(--white);
      margin-bottom: 16px;
      line-height: 1.2;
    }

    .sidebar-content p {
      color: rgba(255,255,255,0.6);
      font-size: 0.9rem;
      line-height: 1.7;
      margin-bottom: 32px;
    }

    .sidebar-steps {
      list-style: none;
    }

    .sidebar-steps li {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      padding: 14px 0;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      color: rgba(255,255,255,0.5);
      font-size: 0.85rem;
      transition: color 0.3s;
    }

    .sidebar-steps li.active {
      color: var(--white);
    }

    .step-dot {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      flex-shrink: 0;
      border: 2px solid rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      font-weight: 700;
      color: rgba(255,255,255,0.4);
      transition: all 0.3s;
    }

    .sidebar-steps li.active .step-dot {
      background: var(--teal);
      border-color: var(--teal);
      color: white;
    }

    .sidebar-steps li.done .step-dot {
      background: var(--success);
      border-color: var(--success);
      color: white;
    }

    .sidebar-steps li.done .step-dot::before {
      content: '✓';
    }

    .sidebar-bottom {
      font-size: 0.8rem;
      color: rgba(255,255,255,0.35);
      position: relative;
      z-index: 1;
    }

    .sidebar-bottom a {
      color: var(--teal);
      text-decoration: none;
    }

    .main {
      flex: 1;
      padding: 48px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
    }

    .form-container {
      width: 100%;
      max-width: 540px;
      padding-top: 20px;
    }

    .form-header {
      margin-bottom: 36px;
    }

    .form-header h1 {
      font-size: 2rem;
      color: var(--navy);
      margin-bottom: 8px;
    }

    .form-header p {
      color: var(--gray);
      font-size: 0.95rem;
    }

    .method-toggle {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-bottom: 32px;
    }

    .method-btn {
      padding: 18px 20px;
      border-radius: 16px;
      border: 2px solid var(--border);
      background: var(--white);
      cursor: pointer;
      text-align: left;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .method-btn:hover {
      border-color: var(--teal);
    }

    .method-btn.active {
      border-color: var(--teal);
      background: var(--teal-light);
    }

    .method-btn.active-email {
      border-color: var(--coral);
      background: var(--coral-light);
    }

    .method-icon {
      font-size: 1.4rem;
    }

    .method-label {
      font-weight: 600;
      font-size: 0.9rem;
      color: var(--navy);
    }

    .method-desc {
      font-size: 0.75rem;
      color: var(--gray);
    }

    .form-section {
      display: none;
    }

    .form-section.visible {
      display: block;
    }

    .field-group {
      margin-bottom: 20px;
    }

    .field-label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--navy);
      margin-bottom: 8px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .field-input {
      width: 100%;
      padding: 13px 18px;
      border: 2px solid var(--border);
      border-radius: 12px;
      font-size: 0.95rem;
      font-family: 'Archivo', sans-serif;
      color: var(--navy);
      background: var(--white);
      transition: border-color 0.2s, box-shadow 0.2s;
      outline: none;
    }

    .field-input:focus {
      border-color: var(--teal);
      box-shadow: 0 0 0 4px rgba(0,184,169,0.1);
    }

    .field-input.error {
      border-color: var(--error);
    }

    .field-input.success {
      border-color: var(--success);
    }

    .field-hint {
      font-size: 0.78rem;
      color: var(--gray);
      margin-top: 6px;
    }

    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .npi-lookup-row {
      display: flex;
      gap: 10px;
    }

    .npi-lookup-row .field-input {
      flex: 1;
    }

    .btn-lookup {
      padding: 13px 20px;
      border-radius: 12px;
      background: var(--teal);
      color: white;
      border: none;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      white-space: nowrap;
      font-family: 'Archivo', sans-serif;
      transition: background 0.2s, transform 0.1s;
      min-width: 90px;
    }

    .btn-lookup:hover:not(:disabled) {
      background: #009E91;
    }

    .btn-lookup:disabled {
      background: #9CA3AF;
      cursor: not-allowed;
    }

    .btn-lookup.loading::after {
      content: '';
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid white;
      border-top-color: transparent;
      animation: spin 0.7s linear infinite;
      margin-left: 8px;
      vertical-align: middle;
    }

    .npi-result {
      display: none;
      padding: 16px 20px;
      border-radius: 12px;
      background: rgba(16,185,129,0.08);
      border: 1.5px solid rgba(16,185,129,0.3);
      margin-top: 12px;
    }

    .npi-result.visible {
      display: block;
    }

    .npi-result-name {
      font-weight: 700;
      color: var(--navy);
      margin-bottom: 4px;
    }

    .npi-result-meta {
      font-size: 0.82rem;
      color: var(--gray);
    }

    .npi-result-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: rgba(16,185,129,0.15);
      color: #059669;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 2px 10px;
      border-radius: 50px;
      margin-top: 8px;
    }

    .send-code-row {
      display: flex;
      gap: 10px;
    }

    .send-code-row .field-input {
      flex: 1;
    }

    .btn-send-code {
      padding: 13px 20px;
      border-radius: 12px;
      background: var(--coral);
      color: white;
      border: none;
      font-weight: 600;
      font-size: 0.85rem;
      cursor: pointer;
      white-space: nowrap;
      font-family: 'Archivo', sans-serif;
      transition: background 0.2s;
      min-width: 110px;
    }

    .btn-send-code:hover:not(:disabled) {
      background: #E02D58;
    }

    .btn-send-code:disabled {
      background: #9CA3AF;
      cursor: not-allowed;
    }

    .code-field-wrap {
      display: none;
      margin-top: 16px;
    }

    .code-field-wrap.visible {
      display: block;
    }

    .code-inputs {
      display: flex;
      gap: 8px;
      margin-top: 8px;
    }

    .code-digit {
      width: 52px;
      height: 60px;
      border: 2px solid var(--border);
      border-radius: 12px;
      text-align: center;
      font-size: 1.4rem;
      font-weight: 700;
      font-family: 'DM Serif Display', serif;
      color: var(--navy);
      background: var(--white);
      outline: none;
      transition: border-color 0.2s;
    }

    .code-digit:focus {
      border-color: var(--coral);
      box-shadow: 0 0 0 4px rgba(246,65,108,0.1);
    }

    .school-badge {
      display: none;
      padding: 10px 16px;
      border-radius: 10px;
      background: rgba(246,65,108,0.07);
      border: 1px solid rgba(246,65,108,0.2);
      font-size: 0.82rem;
      color: var(--coral);
      font-weight: 500;
      margin-top: 10px;
    }

    .school-badge.visible {
      display: block;
    }

    .password-wrap {
      position: relative;
    }

    .password-toggle {
      position: absolute;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      color: var(--gray);
      font-size: 1rem;
      padding: 4px;
    }

    .password-strength {
      margin-top: 8px;
    }

    .strength-bar {
      height: 4px;
      border-radius: 2px;
      background: var(--border);
      overflow: hidden;
    }

    .strength-fill {
      height: 100%;
      border-radius: 2px;
      transition: width 0.3s, background 0.3s;
      width: 0;
    }

    .strength-label {
      font-size: 0.72rem;
      color: var(--gray);
      margin-top: 4px;
    }

    .alert {
      display: none;
      padding: 12px 16px;
      border-radius: 10px;
      font-size: 0.85rem;
      margin-bottom: 20px;
      align-items: flex-start;
      gap: 10px;
    }

    .alert.visible {
      display: flex;
    }

    .alert-error {
      background: rgba(239,68,68,0.08);
      border: 1px solid rgba(239,68,68,0.3);
      color: #B91C1C;
    }

    .alert-success {
      background: rgba(16,185,129,0.08);
      border: 1px solid rgba(16,185,129,0.3);
      color: #065F46;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 16px;
      margin: 28px 0;
      color: var(--gray);
      font-size: 0.82rem;
    }

    .divider::before, .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .btn-submit {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, var(--teal), #009E91);
      color: white;
      border: none;
      border-radius: 14px;
      font-size: 1rem;
      font-weight: 700;
      font-family: 'Archivo', sans-serif;
      cursor: pointer;
      margin-top: 8px;
      transition: all 0.2s ease;
      box-shadow: 0 8px 24px rgba(0,184,169,0.35);
    }

    .btn-submit:hover:not(:disabled) {
      transform: translateY(-2px);
      box-shadow: 0 12px 32px rgba(0,184,169,0.45);
    }

    .btn-submit:disabled {
      background: #D1D5DB;
      box-shadow: none;
      cursor: not-allowed;
    }

    .terms-note {
      text-align: center;
      font-size: 0.78rem;
      color: var(--gray);
      margin-top: 16px;
      line-height: 1.5;
    }

    .terms-note a {
      color: var(--teal);
      text-decoration: none;
    }

    .login-link {
      text-align: center;
      margin-top: 24px;
      font-size: 0.88rem;
      color: var(--gray);
    }

    .login-link a {
      color: var(--teal);
      font-weight: 600;
      text-decoration: none;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @media (max-width: 900px) {
      body {
        flex-direction: column;
      }

      .sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        position: static;
        padding: 32px 24px;
      }

      .sidebar-steps {
        display: none;
      }

      .main {
        padding: 32px 20px;
      }

      .field-row {
        grid-template-columns: 1fr;
      }

      .method-toggle {
        grid-template-columns: 1fr;
      }

      .npi-lookup-row,
      .send-code-row {
        flex-direction: column;
      }

      .code-inputs {
        flex-wrap: wrap;
      }
    }