/* ==========================================================================
   PORTAL - SECURE ACCESS & SLIDER STYLES
   ========================================================================== */

:root {
  --primary-orange: #f37023;
  --primary-orange-hover: #e05e13;
  --primary-blue: #0b5087;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #d1d5db;
  --border-focus: #f37023;
  --card-bg: #ffffff;
  --card-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), 0 4px 12px rgba(0, 0, 0, 0.12);
  --border-radius-card: 12px;
  --border-radius-sm: 8px;
  --font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: #000;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background Slider
   ========================================================================== */
.slider-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ==========================================================================
   Login Wrapper & Card (Positioned Left-Center)
   ========================================================================== */
.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: clamp(24px, 7vw, 100px);
  padding-right: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border-radius: var(--border-radius-card);
  padding: 24px 24px 20px 24px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(4px);
  animation: cardFadeIn 0.6s ease-out backwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Neutral Logo Brand Header */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 4px 12px;
}

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

.portal-icon {
  color: var(--primary-orange);
  background: rgba(243, 112, 35, 0.1);
  padding: 6px;
  border-radius: 10px;
}

.portal-title-group {
  display: flex;
  flex-direction: column;
}

.portal-title {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #0f172a;
  line-height: 1.1;
}

.portal-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 10px 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab-btn.active {
  color: var(--primary-orange);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-orange);
  border-radius: 2px;
}

/* Auth Alerts */
.auth-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.4;
}

.auth-alert.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
}

/* Input Fields */
.input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  height: 48px;
  padding: 0 12px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(243, 112, 35, 0.16);
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 500;
  width: 100%;
}

.input-group input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Toggle Password Visibility Button */
.toggle-password-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 4px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

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

.toggle-password-btn:active {
  transform: scale(0.92);
}

.hidden {
  display: none !important;
}

/* Actions Row: Language & Submit Button */
.actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 6px;
}

/* Language Dropdown */
.language-dropdown-wrapper {
  flex: 1.1;
  height: 48px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 8px 0 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.language-dropdown-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(243, 112, 35, 0.16);
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  margin-right: 6px;
  flex-shrink: 0;
}

.language-select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 18px;
}

.language-dropdown-wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 5px solid #4b5563;
  pointer-events: none;
}

/* Submit Button */
.login-btn {
  flex: 1.1;
  height: 48px;
  border: none;
  border-radius: var(--border-radius-sm);
  background: var(--primary-orange);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(243, 112, 35, 0.32);
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  background: var(--primary-orange-hover);
  box-shadow: 0 6px 16px rgba(243, 112, 35, 0.42);
}

.login-btn:active {
  transform: scale(0.98);
}

.btn-label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forgot Password Row */
.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.forgot-password-link {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2.5px;
  transition: color 0.15s ease;
}

.forgot-password-link:hover {
  color: var(--primary-orange);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 640px) {
  .login-wrapper {
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .login-card {
    max-width: 350px;
    padding: 20px 18px 18px 18px;
  }
}
