/* ==========================================================================
   DAFTAR & AUTH MODERN STYLESHEET - PPDB ONLINE
   ========================================================================== */

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

:root {
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --primary-color: #0284c7;
  --primary-hover: #0369a1;
  --primary-dark: #075985;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --accent-color: #10b981;
  --accent-hover: #059669;
  --accent-light: #ecfdf5;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #38bdf8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   Auth Layout Container (Split-Screen)
   -------------------------------------------------------------------------- */
.auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Left Hero Visual Side */
.auth-visual {
  flex: 1 1 50%;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  color: #ffffff;
  overflow: hidden;
}

.auth-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(2, 132, 199, 0.78) 60%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 1;
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.auth-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-back-home:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateX(-3px);
}

.visual-glass-card {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  margin: 30px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.visual-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #ffffff;
}

.visual-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 24px;
}

.visual-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.visual-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.visual-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 15px;
  flex-shrink: 0;
}

.visual-feature-text {
  font-size: 14px;
  font-weight: 500;
  color: #f1f5f9;
}

.visual-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13.5px;
}

.visual-footer-info a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
}

.visual-footer-info a:hover {
  text-decoration: underline;
}

/* Right Form Side */
.auth-form-container {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  background-color: var(--bg-page);
  overflow-y: auto;
  min-height: 100vh;
}

.auth-form-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 38px 36px;
  margin: auto 0;
  transition: all 0.3s ease;
}

/* Header Inside Card */
.form-header-area {
  text-align: center;
  margin-bottom: 28px;
}

.form-school-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.form-main-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-school-subtitle {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 14px;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.status-pill.pill-open {
  background-color: var(--accent-light);
  color: var(--accent-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.pill-open::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-dot 1.8s infinite;
}

.status-pill.pill-closed {
  background-color: #fef2f2;
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.pill-upcoming {
  background-color: #fffbeb;
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Form Section Separators */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin: 24px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border-color);
}

.form-section-title i {
  color: var(--primary-color);
  font-size: 14px;
}

/* Inputs & Labels */
.custom-form-group {
  margin-bottom: 18px;
}

.custom-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.custom-label .required-star {
  color: #ef4444;
  margin-left: 2px;
}

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

.input-icon-group .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 15px;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 3;
}

.custom-input,
.custom-select {
  width: 100%;
  height: 46px;
  padding: 10px 14px 10px 42px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.custom-input:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
  background-color: #ffffff;
}

.custom-input:focus + .input-icon,
.input-icon-group:focus-within .input-icon {
  color: var(--primary-color);
}

.btn-toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
  transition: color 0.2s;
  z-index: 3;
}

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

/* Captcha Block */
.captcha-container {
  background: #f8fafc;
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.captcha-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.captcha-img-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.captcha-img {
  height: 52px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.btn-refresh-captcha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh-captcha:hover {
  background: var(--primary-light);
  color: var(--primary-color);
  border-color: #bae6fd;
}

/* Submit Button */
.btn-submit-daftar {
  width: 100%;
  height: 50px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.3s ease;
  margin-top: 24px;
}

.btn-submit-daftar:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  transform: translateY(-1.5px);
  color: #ffffff;
}

.btn-submit-daftar:active {
  transform: translateY(0);
}

.btn-submit-daftar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Notice Box */
.info-notice-box {
  background-color: #f0f9ff;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #0369a1;
  margin-top: 20px;
}

/* Card Footer */
.form-footer-area {
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.form-footer-area a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
}

.form-footer-area a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .auth-wrapper {
    flex-direction: column;
  }
  .auth-visual {
    min-height: 380px;
    padding: 24px 20px;
  }
  .visual-glass-card {
    padding: 24px 20px;
    margin: 20px 0;
  }
  .visual-title {
    font-size: 22px;
  }
  .auth-form-container {
    padding: 24px 16px;
  }
  .auth-form-card {
    padding: 28px 20px;
    box-shadow: var(--shadow-md);
  }
}

@media (max-width: 575.98px) {
  .auth-visual {
    min-height: 320px;
  }
  .visual-title {
    font-size: 20px;
  }
  .form-main-title {
    font-size: 19px;
  }
  .form-section-title {
    font-size: 11px;
  }
}
