:root {
    --primary: #0C4C6C;
    --primary-light: #1E7EA8;
    --accent: #33C0C1;
    --light: #F7FAFC;
    --dark: #1A2C38;
    --gray: #E2E8F0;
    --text: #334155;
    --error: #E53E3E;
    --success: #38A169;
    --warning: #EAB308;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; */
  }

  body {
    min-height: 100vh;
    background: linear-gradient(135deg, #F5F7FA 0%, #E4EFF4 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .page-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  }

  /* Sidebar / Brand Section */
  .sidebar {
    width: 40%;
    background: linear-gradient(165deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    padding: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10h10v10H0V10zM10 0h10v10H10V0z' fill='%23ffffff' fill-opacity='0.07' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
  }

  .brand {
    position: relative;
    z-index: 1;
  }

  .logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
  }

  .logo {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
  }

  .logo img {
    width: 45px;
    height: auto;
  }

  .brand-name {
    flex: 1;
  }

  .brand-name h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .brand-name p {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .portal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0;
    line-height: 1.4;
  }

  .portal-title span {
    color: var(--accent);
  }

  .contact-info {
    margin-top: auto;
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
  }

  .contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
  }

  .contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

  .contact-detail i {
    width: 24px;
    margin-right: 10px;
    color: var(--accent);
  }

  /* Main Content / Login Form */
  .main-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
  }

  .header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
  }

  .home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--light);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .home-btn:hover {
    background-color: var(--primary-light);
    color: white;
  }

  .login-section {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  .login-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .mobile-logo {
    display: none;
    margin-bottom: 1.5rem;
  }

  .mobile-logo img {
    height: 50px;
    width: auto;
  }

  .login-title {
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .login-subtitle {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.7;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
  }

  .input-container {
    position: relative;
  }

  .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1rem;
  }

  .form-input {
    width: 100%;
    height: 52px;
    padding: 0 15px 0 45px;
    border: 1.5px solid var(--gray);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    transition: all 0.3s ease;
  }

  .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 76, 108, 0.1);
  }

  .password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .password-toggle:hover {
    color: var(--primary);
  }

  .error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Captcha Section */
  .captcha-section {
    background-color: var(--light);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.5rem;
  }

  .captcha-image {
    flex: 1;
    max-width: 150px;
    height: 50px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray);
  }

  .captcha-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .captcha-refresh {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid var(--gray);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .captcha-refresh:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
  }

  .captcha-input {
    flex: 1;
    height: 50px;
    border: 1.5px solid var(--gray);
    border-radius: 8px;
    padding: 0 15px;
    font-size: 1rem;
  }

  .captcha-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 76, 108, 0.1);
  }

  /* Login Button */
  .login-btn {
    display: block;
    width: 100%;
    height: 52px;
    background: #0C4C6C;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(12, 76, 108, 0.2);
  }

  .login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 76, 108, 0.25);
  }

  .login-btn:active {
    transform: translateY(0);
  }

  /* Login Options */
  .login-options {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
  }

  .login-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
  }

  .login-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
  }

  /* Responsive Design */
  @media (max-width: 992px) {
    .page-container {
      flex-direction: column;
      max-height: none;
    }

    .sidebar {
      width: 100%;
      padding: 2rem;
    }

    .portal-title {
      font-size: 1.5rem;
      margin: 1.5rem 0;
    }

    .contact-info {
      margin-top: 1.5rem;
    }

    .main-content {
      padding: 2rem;
    }
  }

  @media (max-width: 768px) {
    body {
      padding: 0;
      background: white;
    }

    .page-container {
      box-shadow: none;
      border-radius: 0;
    }

    .sidebar {
      display: none;
    }

    .mobile-logo {
      display: block;
    }

    .login-section {
      justify-content: flex-start;
      margin-top: 2rem;
    }
  }

  @media (max-width: 576px) {
    .main-content {
      padding: 1.5rem;
    }

    .captcha-container {
      flex-wrap: wrap;
    }

    .captcha-image {
      max-width: none;
      width: calc(100% - 50px);
    }

    .captcha-input {
      width: 100%;
      margin-top: 0.75rem;
    }

    .login-options {
      flex-direction: column;
      gap: 1rem;
      align-items: center;
    }
  }

  .refresh-captcha {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #124E66;
    cursor: pointer;
    flex-shrink: 0;
}