/* ==================================================
   RHIVON AUTHENTICATION PAGES - css/auth.css
   ================================================== */

.auth-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Flow naturally from the top! */
  padding: 140px 20px 60px 20px; /* Safe padding to clear fixed header */
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-sizing: border-box;
}

.auth-container {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.auth-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  gap: 10px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--cool-grey);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--cool-grey);
}

.auth-link {
  color: var(--accent-green);
  font-weight: 600;
}
.auth-link:hover {
  text-shadow: 0 0 10px rgba(22, 212, 134, 0.3);
}

/* Auth Alerts & Validation */
.auth-alert {
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-width: 1px;
  border-style: solid;
}

.alert-error {
  background: rgba(239, 83, 80, 0.12);
  border-color: rgba(239, 83, 80, 0.3);
  color: #EF5350;
}

.alert-success {
  background: rgba(22, 212, 134, 0.12);
  border-color: rgba(22, 212, 134, 0.3);
  color: var(--accent-green);
}

/* Custom Platform Option Buttons (Fintech Selector) */
.platform-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}

.platform-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background: rgba(4, 20, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.platform-option:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.platform-option.selected {
  background: var(--active-pill-bg);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(22, 212, 134, 0.1);
}

.platform-option-logo {
  font-family: var(--font-family-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.platform-option.selected .platform-option-logo {
  color: var(--accent-green);
}

.platform-option-label {
  font-size: 11px;
  color: var(--cool-grey);
  font-weight: 500;
}
.platform-option.selected .platform-option-label {
  color: var(--accent-green);
}

/* Mobile responsive enhancements */
@media (max-width: 480px) {
  .login-input-row {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #sendOtpBtn {
    width: 100% !important;
    height: 52px !important;
    padding: 12px !important;
    font-size: 13px !important;
    justify-content: center !important;
  }
  .auth-wrapper {
    padding: 80px 16px 40px 16px !important;
  }
  .glass-card {
    padding: 24px 16px !important;
  }
}
