/* ==========================================================================
   AMAN GOLD - LUXURY LOGIN PAGE STYLESHEET
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-gold: #c68e27;
  --gold-light: #dfaa43;
  --gold-dark: #9d6812;
  --gold-gradient: linear-gradient(135deg, #c79029 0%, #b37a1b 50%, #9e6712 100%);
  --gold-btn-hover: linear-gradient(135deg, #d89f33 0%, #c48b25 50%, #ae7518 100%);
  --gold-badge-bg: rgba(198, 142, 39, 0.15);
  --gold-border: rgba(198, 142, 39, 0.35);

  --navy-bg-start: #081427;
  --navy-bg-mid: #0b1a32;
  --navy-bg-end: #050c18;
  
  --body-bg: #eef2f6;
  --card-bg: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --input-border: #cbd5e1;
  --input-focus: #c68e27;
  --input-bg: #ffffff;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-gold: 0 8px 20px -4px rgba(198, 142, 39, 0.4);
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cinzel', serif;
}

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

html, body {
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-main);
  background-color: var(--body-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(198, 142, 39, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(11, 26, 50, 0.06) 0px, transparent 50%);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* Container & Wrapper */
.login-page-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  width: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 390px 1fr;
  min-height: 640px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ==========================================================================
   LEFT HERO PANEL (NAVY & GOLD)
   ========================================================================== */
.hero-panel {
  background: linear-gradient(175deg, var(--navy-bg-start) 0%, var(--navy-bg-mid) 45%, var(--navy-bg-end) 100%);
  color: var(--text-white);
  padding: 36px 32px 0 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  user-select: none;
}

/* Top left stardust sparkle effect */
.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 160px;
  background-image: 
    radial-gradient(rgba(223, 170, 67, 0.5) 1.5px, transparent 1.5px),
    radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 14px 14px, 22px 22px;
  background-position: 0 0, 7px 7px;
  opacity: 0.6;
  pointer-events: none;
  mask-image: radial-gradient(circle at top left, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at top left, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Brand Header */
.brand-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 10px;
  position: relative;
}

.brand-emblem-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 8px rgba(198, 142, 39, 0.4));
}

/* Brand Custom Logo Wrapper (Hero Panel) */
.brand-custom-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(232, 185, 88, 0.55);
  margin-bottom: 14px;
  max-width: 240px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-custom-logo-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.55), 0 0 0 2.5px rgba(232, 185, 88, 0.85);
}

.brand-custom-logo-img {
  max-width: 200px;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.login-company-logo-img {
  width: 100%;
  height: 100%;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(232, 185, 88, 0.65);
  background: #ffffff;
  padding: 1px;
  transition: transform 0.25s ease;
}

.login-company-logo-img:hover {
  transform: scale(1.08);
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #f7d27e;
  background: linear-gradient(135deg, #ffffff 0%, #fae29c 35%, #d49c2d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #b0c4de;
  text-transform: capitalize;
  opacity: 0.9;
}

/* Proposition Section */
.hero-proposition {
  margin-bottom: 24px;
}

.prop-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.prop-desc {
  font-size: 0.76rem;
  line-height: 1.4;
  color: #a0aec0;
  margin-bottom: 20px;
}

/* Feature List */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}

.feature-item:hover {
  transform: translateX(4px);
}

.feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #162a4a 0%, #0d1e38 100%);
  border: 1.5px solid rgba(198, 142, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feature-icon-svg {
  width: 20px;
  height: 20px;
  fill: #e6b74e;
}

.feature-text h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.71rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Jewelry Display at bottom */
.hero-jewelry-container {
  position: relative;
  margin: 16px -32px 0 -32px;
  width: calc(100% + 64px);
  line-height: 0;
  z-index: 1;
}

.hero-jewelry-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-bottom-left-radius: var(--radius-lg);
  filter: brightness(1.05) contrast(1.08);
}

/* ==========================================================================
   RIGHT FORM PANEL
   ========================================================================== */
.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 44px 18px 44px;
  background: #ffffff;
  position: relative;
}

/* Top bar: Language Selector */
.panel-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
}

.lang-dropdown-wrapper {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.lang-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-dark);
}

.lang-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  min-width: 130px;
  z-index: 20;
  overflow: hidden;
}

.lang-menu.show {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

.lang-item {
  padding: 8px 14px;
  font-size: 0.8rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.lang-item:hover {
  background: #f1f5f9;
  color: var(--primary-gold);
}

.lang-item.active {
  background: #faf5eb;
  font-weight: 600;
  color: var(--primary-gold);
}

/* Form Main Center */
.form-content {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}

/* Header & Shield Lock */
.form-header {
  text-align: center;
  margin-bottom: 20px;
}

/* Form Panel Brand Logo Wrapper */
.form-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.form-company-logo-img {
  max-width: 170px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: transform 0.2s ease;
}

.form-company-logo-img:hover {
  transform: scale(1.03);
}

.shield-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #dcb25b;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(198, 142, 39, 0.18);
}

.shield-icon-svg {
  width: 22px;
  height: 22px;
  fill: #1e293b;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.form-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.accent-gold-line {
  width: 36px;
  height: 3px;
  background: var(--primary-gold);
  border-radius: 2px;
  margin: 0 auto;
}

/* Form Controls & Inputs */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #94a3b8;
  pointer-events: none;
  transition: fill 0.2s ease;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 10px 42px 10px 42px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: var(--text-dark);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #94a3b8;
  font-size: 0.84rem;
}

.form-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(198, 142, 39, 0.15);
}

.input-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.input-toggle-btn:hover {
  color: var(--text-dark);
}

.input-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Options Row */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-top: -2px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

.custom-checkbox::before {
  content: "";
  width: 9px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s ease-in-out;
  margin-top: -2px;
}

.custom-checkbox:checked {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.custom-checkbox:checked::before {
  transform: rotate(-45deg) scale(1);
}

.forgot-link {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--gold-dark);
  text-decoration: underline;
}

/* Sign In Button */
.btn-primary-gold {
  width: 100%;
  height: 46px;
  background: var(--gold-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.25s ease;
}

.btn-primary-gold:hover {
  background: var(--gold-btn-hover);
  box-shadow: 0 10px 24px -4px rgba(198, 142, 39, 0.55);
  transform: translateY(-1px);
}

.btn-primary-gold svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Quick Role Selector Buttons */
.role-demo-shortcuts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.role-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.role-pill-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.role-pill-btn svg {
  width: 13px;
  height: 13px;
  fill: #c68e27;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.role-pill-btn:hover {
  background: #faf5eb;
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(198, 142, 39, 0.15);
}

.role-pill-btn:hover svg {
  transform: scale(1.15);
}

/* Divider */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 2px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #e2e8f0;
  z-index: 1;
}

.auth-divider span {
  position: relative;
  z-index: 2;
  background: #ffffff;
  padding: 0 12px;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Secondary Button */
.btn-secondary-outline {
  width: 100%;
  height: 42px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.btn-secondary-outline svg {
  width: 18px;
  height: 18px;
  fill: #64748b;
}

.company-code-box {
  display: none;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 6px;
}

.company-code-box.show {
  display: block;
}

.alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.alert-box.show {
  display: flex;
}

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

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

/* Bottom Trust Badges */
.form-footer-section {
  margin-top: 24px;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.trust-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.trust-icon-box {
  flex-shrink: 0;
  margin-top: 1px;
}

.trust-icon-svg {
  width: 18px;
  height: 18px;
  fill: #c68e27;
}

.trust-text h5 {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
  white-space: nowrap;
}

.trust-text p {
  font-size: 0.66rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.copyright-text {
  text-align: center;
  font-size: 0.7rem;
  color: #94a3b8;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .login-card { grid-template-columns: 320px 1fr; }
  .form-panel { padding: 20px 24px; }
  .trust-badges-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 720px) {
  .login-card { grid-template-columns: 1fr; }
  .hero-panel { padding: 24px 18px 0 18px; }
  .form-panel { padding: 20px 16px; }
  .trust-badges-grid { grid-template-columns: 1fr; gap: 10px; }
}
