:root {
  --primary: #102b5e;
  --primary-light: #1e4287;
  --accent: #ffc226;
  --accent-hover: #ffcd4f;
  --bg-body: #f0f2f5;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; }

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.main-wrapper {
  background: var(--white);
  width: 100%;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  height: 85vh;
  max-height: 700px;
}

/* Left Side */
.brand-section {
  background: linear-gradient(135deg, var(--primary) 0%, #081630 100%);
  width: 35%;
  padding: 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  flex-shrink: 0;
}

.brand-section::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: rgba(255, 194, 38, 0.1);
  border-radius: 50%;
}

.brand-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* Right Side */
.form-section {
  width: 65%;
  padding: 50px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centers form vertically if height is large */
}

.form-header-text {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full-width { grid-column: span 2; }

.input-group { margin-bottom: 15px; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
  display: block;
}

.field-wrapper { position: relative; }

.field-wrapper i.icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: 0.3s;
  background: #f9fafb;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(16, 43, 94, 0.1);
}

/* Buttons & Divider */
.btn-container {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-submit {
  background: var(--primary);
  color: var(--white);
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
}

.btn-submit:hover { background: var(--primary-light); }

.divider {
  text-align: center;
  position: relative;
  margin: 10px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.btn-epramaan {
  background: #1e40af; /* ePramaan Brand Blue */
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-epramaan:hover { opacity: 0.9; transform: translateY(-1px); }

/* Responsive */
@media (max-width: 900px) {
  .main-wrapper { flex-direction: column; height: auto; max-height: none; }
  .brand-section { width: 100%; min-height: 250px; }
  .form-section { width: 100%; padding: 30px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
}

/* --- Toast Notification System --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-toast {
  min-width: 300px;
  max-width: 400px;
  background: var(--white);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary);
  animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all 0.3s ease;
}

.custom-toast.success { border-left-color: var(--success); }
.custom-toast.error { border-left-color: var(--error); }
.custom-toast.warning { border-left-color: var(--accent); }

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.success .toast-icon { color: var(--success); }
.error .toast-icon { color: var(--error); }
.warning .toast-icon { color: var(--accent); }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-fade-out {
  transform: translateX(100%);
  opacity: 0;
}

.btn-epramaan {
  display: inline-flex;
  align-items: center;
  justify-content: center;   /* ← important */
  gap: 0.75rem;

  padding: 0.6rem 1.1rem;
  border-radius: 10px;

  background: #ffffff;
  color: #111827;

  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;            /* ← fixes vertical text shift */

  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.btn-epramaan span {
  display: flex;
  align-items: center;      /* ensures text is vertically centered */
}


.btn-epramaan img {
  width: 1.8rem;
  height: auto;
}

/* subtle modern hover */
.btn-epramaan:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

/* focus ring for accessibility */
.btn-epramaan:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 136, 8, 0.25);
}

/* active press */
.btn-epramaan:active {
  background: #f3f4f6;
}
