/* ==========================================
   GIFTNETAPP ADMIN LOGIN
   Prefix: adl- (Admin Login)
   ========================================== */

.adl-page {
  display: flex;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.adl-page *, .adl-page *::before, .adl-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==========================================
   LEFT PANEL
   ========================================== */
.adl-left {
  width: 45%;
  background: linear-gradient(145deg, #0f2d1a 0%, #1b5e20 50%, #0d2b0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
.adl-left::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  top: -100px;
  right: -100px;
}
.adl-left::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(249,115,22,0.07);
  bottom: -80px;
  left: -80px;
}

.adl-left-content {
  position: relative;
  z-index: 1;
  max-width: 400px;
  width: 100%;
}

.adl-big-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(249,115,22,0.25);
  border: 1.5px solid rgba(249,115,22,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.adl-left-content h1 {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.adl-left-content h1 span {
  color: #f97316;
}

.adl-left-content > p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Stats row */
.adl-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.adl-stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 18px;
  flex: 1;
  text-align: center;
}

.adl-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.adl-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Feature pills */
.adl-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.adl-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Credentials hint box */
.adl-creds-hint {
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
}

.adl-creds-title {
  font-weight: 700;
  color: #fb923c;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.adl-creds-row {
  color: rgba(255,255,255,0.65);
  margin-bottom: 6px;
  line-height: 1.5;
}

.adl-creds-pass {
  background: rgba(0,0,0,0.3);
  color: #86efac;
  padding: 1px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  margin-left: 4px;
}

.adl-creds-warn {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.adl-creds-user {
  color: #fde047;
  font-family: monospace;
  font-size: 12px;
}

/* ==========================================
   RIGHT PANEL
   ========================================== */
.adl-right {
  flex: 1;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.adl-form-wrap {
  width: 100%;
  max-width: 420px;
}

/* Brand row */
.adl-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.adl-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1b5e20, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adl-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.adl-brand-sub {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}

.adl-form-wrap h2 {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin-bottom: 6px;
}

.adl-form-wrap > p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

/* Error banner */
.adl-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 11px 14px;
  color: #b91c1c;
  font-size: 13.5px;
  margin-bottom: 20px;
}

/* Form fields */
.adl-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.adl-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.adl-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .15s, box-shadow .15s;
}

.adl-input-wrap:focus-within {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

.adl-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 14px;
  color: #111;
  background: transparent;
  font-family: inherit;
}

.adl-input-wrap input::placeholder { color: #9ca3af; }

.adl-eye {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  color: #9ca3af;
  transition: color .15s;
}
.adl-eye:hover { color: #16a34a; }

/* Submit button */
.adl-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
  font-family: inherit;
  margin-bottom: 20px;
}

.adl-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #15803d, #14532d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,163,74,0.35);
}

.adl-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Spinner inside button */
.adl-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: adl-spin .6s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes adl-spin { to { transform: rotate(360deg); } }

/* Security note */
.adl-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  justify-content: center;
  line-height: 1.5;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .adl-left { display: none; }
  .adl-right { background: #fff; padding: 32px 24px; }
}

@media (max-width: 480px) {
  .adl-form-wrap h2 { font-size: 22px; }
  .adl-stats { gap: 10px; }
}