/* =====================================================================
   pages/register/register.css
   Registration-specific styles (extracted from the legacy register.html
   inline <style> blocks). Reuses shared tokens where possible; no need
   to import the legacy global style.css for this standalone page.
   ===================================================================== */

:root {
  /* --- Dialogika Color Palette --- */
  --dlg-blue: #0b2b6a;
  --dlg-blue-start: #0b2b6a;
  --dlg-blue-end: #1247af;
  --dlg-yellow: #f7b12c;
  --dlg-yellow-end: #f9c72e;
  --bg-body: #f1f7fd;
  --topbar-height: 70px;
  --surface: #ffffff;
  --border-strong: #e5e7eb;
  --text: #1f2937;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-body);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* --- TOP BAR (Fixed) --- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* --- MAIN LAYOUT WRAPPER --- */
.main-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  flex: 1;
  width: 100%;
  margin-top: var(--topbar-height);
  padding-top: 30px;
  padding-bottom: 50px;
}

/* --- CARD STYLES --- */
.card-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 420px;
  height: 260px;
  cursor: pointer;
  margin: 0 auto;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-wrapper.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  color: white;
}

/* Front */
.card-front {
  background-image: url("../../assets/img/card-front.jpg");
  background-color: #07276b;
  background-size: cover;
  background-position: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

/* Back */
.card-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #07276b 0%, #1e81d0 100%);
}

.card-back::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-chip {
  width: 50px;
  height: 35px;
  background: linear-gradient(135deg, #d4af37, #f2e298);
  border-radius: 5px;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.photo-area {
  position: absolute;
  top: 25px;
  right: 25px;
  text-align: center;
}

.photo-preview-card {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}

.birth-label {
  font-size: 8px;
  text-transform: uppercase;
  display: block;
}

.birth-date-display {
  font-family: "Share Tech Mono", monospace;
  font-size: 14px;
}

.card-number-container {
  margin-top: 35px;
}

.card-number {
  font-family: "Share Tech Mono", monospace;
  font-size: 20px;
  letter-spacing: 2px;
  width: 100%;
}

.card-password-display {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.9);
}

.card-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.detail-label {
  font-size: 8px;
  text-transform: uppercase;
  opacity: 0.8;
}

.detail-value-name {
  font-family: "Share Tech Mono", monospace;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
}

.detail-value-pos {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffd700;
}

/* Back Elements */
.magnetic-strip {
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 45px;
  background: #1a1a1a;
}

.signature-strip {
  position: absolute;
  top: 100px;
  left: 15px;
  right: 15px;
  height: 35px;
  background: var(--surface);
  display: flex;
  align-items: center;
  padding-left: 10px;
  background-image: url("https://www.transparenttextures.com/patterns/diagonal-stripes.png");
}

.email-display-back {
  color: #333;
  font-family: "Share Tech Mono", monospace;
  font-size: 12px;
}

.cvv-label {
  position: absolute;
  top: 85px;
  left: 15px;
  font-size: 10px;
  text-transform: uppercase;
}

.visa-logo-back {
  position: absolute;
  bottom: 20px;
  right: 25px;
}

.back-details {
  position: absolute;
  bottom: 20px;
  left: 20px;
  text-align: left;
  font-size: 10px;
  opacity: 0.8;
  line-height: 1.6;
}

/* --- FORM BOX --- */
.form-box {
  background: var(--surface);
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  padding: 30px;
  width: 100%;
  max-width: 600px;
}

.upload-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 180px;
  background-color: #f0f7ff;
  border: 2px dashed #1e81d0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  padding: 20px;
}

.upload-area:hover {
  background-color: #e1efff;
  border-color: #07276b;
}

.upload-icon {
  font-size: 40px;
  color: #1e81d0;
  margin-bottom: 10px;
}

.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
}

/* --- BUTTONS --- */
.blue-dialogika-btn {
  background: linear-gradient(to bottom, #0f61a8 5%, #0b2b6a 100%);
  box-shadow: 0px 5px 16px -6px rgba(114, 4, 207, 1);
  color: #fff;
  border: none;
  transition: 0.3s;
}

.blue-dialogika-btn:hover {
  background: linear-gradient(to bottom, #0b2b6a 5%, #0f61a8 100%);
  color: #fff;
}

/* --- MESSAGE BANNER --- */
.register-alert {
  display: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}
.register-alert.error {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}
.register-alert.success {
  background-color: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #b7e1c1;
}
.register-alert.info {
  background-color: #e8f0fe;
  color: #1a56b8;
  border: 1px solid #b9ccf5;
}

/* --- FOOTER --- */
footer {
  width: 100%;
  margin-top: auto;
  background: #0b2b6a;
  z-index: 10;
}

#footer {
  font-size: 14px;
  background: #0b2b6a;
  color: #fff;
  padding: 0;
}

#footer .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

#footer .credits {
  padding-top: 5px;
  font-size: 13px;
  color: #444444;
}

#footer .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--surface);
  color: #0b2b6a;
  line-height: 1;
  padding: 8px 0;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  box-shadow: 0px -10px 15px -6px rgba(114, 4, 207, 0.75) inset;
  -webkit-box-shadow: 0px -10px 15px -6px rgba(114, 4, 207, 0.75) inset;
  -moz-box-shadow: 0px -10px 15px -6px rgba(114, 4, 207, 0.75) inset;
}

#footer .social-links a:hover {
  background: #7204cf;
  color: #fff;
  text-decoration: none;
  box-shadow: 0px 0px 4px 2px rgba(114, 4, 207, 0.75);
  -webkit-box-shadow: 0px 0px 4px 2px rgba(114, 4, 207, 0.75);
  -moz-box-shadow: 0px 0px 4px 2px rgba(114, 4, 207, 0.75);
}

/* Responsif Mobile */
@media (max-width: 768px) {
  #footer .container {
    flex-direction: column;
    text-align: center !important;
    gap: 15px;
  }

  .me-md-auto {
    text-align: center !important;
    margin-bottom: 10px;
  }
}

/* =====================================================================
   DARK MODE OVERRIDES — register.css
   ===================================================================== */
[data-theme="dark"] .form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .upload-area {
  background-color: var(--surface-2);
  border-color: #3b82f6;
}
[data-theme="dark"] .upload-area:hover {
  background-color: var(--surface-hover);
  border-color: #60a5fa;
}
[data-theme="dark"] .register-alert.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}
[data-theme="dark"] .register-alert.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
[data-theme="dark"] .register-alert.info {
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
}