/* Centralized page layout: index.html. */

/* Extracted style block 1 from index.html. */
* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: Exo2, -apple-system, BlinkMacSystemFont, sans-serif;
      background: radial-gradient(circle at 10% 20%, rgba(255, 248, 245, 0.98) 0%, rgba(250, 242, 237, 1) 90%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1.2rem;
      margin: 0;
      position: relative;
    }

    /* decorative blobs */
    body::before {
      content: "";
      position: fixed;
      top: -20%;
      right: -10%;
      width: 70%;
      height: 70%;
      background: radial-gradient(circle at 30% 30%, rgba(124, 59, 98, 0.04) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
      pointer-events: none;
    }

    body::after {
      content: "";
      position: fixed;
      bottom: -15%;
      left: -5%;
      width: 60%;
      height: 60%;
      background: radial-gradient(circle at 70% 60%, rgba(124, 59, 98, 0.03) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
      pointer-events: none;
    }

    .portal-container {
      width: 100%;
      max-width: 540px;
      background: #ffffff;
      border-radius: 2.5rem;
      box-shadow: 0 30px 50px rgba(124, 59, 98, 0.12), 0 10px 25px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      transition: all 0.3s ease;
      z-index: 2;
      position: relative;
    }

    .portal-header {
      background: linear-gradient(135deg, #6b0000 0%, #7c3b62 70%, #5c0000 100%);
      color: white;
      padding: 2.4rem 2rem 2rem;
      text-align: center;
      position: relative;
      overflow: hidden;
    }

    .portal-header::after {
      content: "";
      position: absolute;
      top: -30%;
      left: -10%;
      width: 120%;
      height: 140%;
      background: radial-gradient(circle at 20% 30%, rgba(255, 215, 150, 0.15) 0%, transparent 60%);
      pointer-events: none;
    }

    .school-logo {
      width: 220px;
      height: 220px;
      margin: 0 auto 0.8rem;
      background: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
      position: relative;
      z-index: 1;
      overflow: hidden;
    }

    .school-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 0.5rem;
    }

    .school-logo .logo-placeholder {
      font-size: 2.5rem;
      color: #7c3b62;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .portal-header h2 {
      font-weight: 800;
      font-size: 2.2rem;
      letter-spacing: -0.5px;
      text-shadow: 0 4px 10px rgba(0,0,0,0.3);
      margin-top: 0;
    }

    .portal-header .motto {
      font-style: italic;
      font-weight: 400;
      font-size: 0.9rem;
      margin-top: 0.4rem;
      opacity: 0.9;
      background: rgba(0,0,0,0.2);
      display: inline-block;
      padding: 0.25rem 1.2rem;
      border-radius: 20px;
      backdrop-filter: blur(4px);
    }

    /* role tabs */
    .role-tabs {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.4rem;
      padding: 1.2rem 1.2rem 0.6rem;
      background: #fffef0;
      border-bottom: 1px solid rgba(124, 59, 98, 0.08);
    }

    .role-tab {
      flex: 0 1 auto;
      padding: 0.6rem 1rem;
      font-size: 0.8rem;
      font-weight: 600;
      color: #4a2e2e;
      cursor: pointer;
      border-radius: 3rem;
      background: transparent;
      display: flex;
      align-items: center;
      gap: 0.4rem;
      transition: all 0.25s ease;
      border: 1px solid transparent;
      white-space: nowrap;
    }

    .role-tab i {
      font-size: 1rem;
      color: #7c3b62;
      transition: color 0.2s;
    }

    .role-tab:hover {
      background: #f7ede8;
      border-color: rgba(124, 59, 98, 0.25);
    }

    .role-tab.active {
      background: #7c3b62;
      color: white;
      border-color: #7c3b62;
      box-shadow: 0 8px 16px rgba(124, 59, 98, 0.3);
      transform: translateY(-2px);
    }

    .role-tab.active i {
      color: white;
    }

    .form-body {
      padding: 2rem 2rem 1.8rem;
      background: #ffffff;
    }

    .form-panel {
      display: none;
      flex-direction: column;
      gap: 1.5rem;
      animation: fadeSlide 0.3s ease;
    }

    .form-panel.active {
      display: flex;
    }

    @keyframes fadeSlide {
      0% { opacity: 0.5; transform: translateY(6px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    .input-group {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .input-group label {
      font-weight: 700;
      font-size: 0.85rem;
      color: #2e1c1c;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }

    .input-field {
      display: flex;
      align-items: center;
      background: #fdfaf7;
      border: 1.5px solid #e7dbd0;
      border-radius: 1.2rem;
      padding: 0.8rem 1.2rem;
      transition: all 0.2s;
    }

    .input-field i {
      color: #7c3b62;
      font-size: 1.1rem;
      margin-right: 0.8rem;
      opacity: 0.75;
      width: 1.2rem;
    }

    .input-field input {
      border: none;
      background: transparent;
      width: 100%;
      font-size: 0.95rem;
      font-family: Exo2, sans-serif;
      font-weight: 500;
      outline: none;
      color: #1f1414;
    }

    .input-field input::placeholder {
      color: #b7a79b;
      font-weight: 400;
    }

    .input-field:focus-within {
      border-color: #7c3b62;
      background: #ffffff;
      box-shadow: 0 0 0 4px rgba(124, 59, 98, 0.1);
    }

    .password-toggle {
      flex: 0 0 auto;
      border: 0;
      background: transparent;
      color: #7c3b62;
      cursor: pointer;
      padding: 0.35rem;
      margin-left: 0.35rem;
      font-size: 1rem;
      line-height: 1;
    }

    .password-toggle:focus-visible {
      outline: 2px solid #7c3b62;
      border-radius: 0.45rem;
    }

    .caps-warning {
      display: none;
      color: #b71c1c;
      font-size: 0.74rem;
      font-weight: 700;
      margin-top: 0.35rem;
    }

    .btn {
      background: linear-gradient(105deg, #7c3b62 0%, #5e0000 100%);
      color: white;
      border: none;
      padding: 1rem;
      border-radius: 3rem;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.25s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.6rem;
      box-shadow: 0 10px 18px -8px rgba(124, 59, 98, 0.4);
    }

    .btn:hover {
      background: linear-gradient(105deg, #7c3b62 0%, #562440 100%);
      transform: scale(1.02);
    }

    .btn:active {
      transform: scale(0.97);
    }

    .btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
    }

    .forgot-link {
      text-align: right;
      font-size: 0.8rem;
      color: #7c3b62;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.2rem;
    }

    .forgot-link:hover {
      color: #4d0000;
      text-decoration: underline;
    }

    /* feedback message */
    .feedback-message {
      background: #f9f1ed;
      border-left: 5px solid #7c3b62;
      padding: 0.9rem 1rem;
      border-radius: 1rem;
      font-size: 0.85rem;
      font-weight: 500;
      color: #2e1c1c;
      display: flex;
      align-items: center;
      gap: 0.7rem;
      margin-top: 0.2rem;
      transition: all 0.2s;
    }

    .feedback-success {
      background: #e8f5e9;
      border-left-color: #2e7d32;
      color: #1b5e20;
    }

    .feedback-error {
      background: #ffebee;
      border-left-color: #c62828;
      color: #b71c1c;
    }

    .feedback-info {
      background: #e3f2fd;
      border-left-color: #0d47a1;
    }

    .footer-note {
      text-align: center;
      font-size: 0.75rem;
      color: #8a7b72;
      margin-top: 1.6rem;
      border-top: 1px solid #f0e4da;
      padding-top: 1.4rem;
      font-weight: 500;
    }

    @media (max-width: 450px) {
      .role-tab { padding: 0.5rem 0.7rem; font-size: 0.7rem; }
      .portal-header h2 { font-size: 1.9rem; }
      .school-logo { width: 220px; height: 220px; }
    }

    .login-hint {
      font-size: 0.7rem;
      color: #8a7b72;
      margin-top: -0.5rem;
      margin-bottom: 0.5rem;
      text-align: center;
    }
