/* =========================================================
   LOGIN / REGISTER MODALS - Modern Glassmorphism Design
   ========================================================= */

/* Base Reset & Font */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Background Layer */
.tile-bg-container.single {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.tile-bg-container.single img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(1.2);
  transform: scale(1.05);
}

.tile-dark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(15,23,42,0.8) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Main Wrapper - Glass Card */
.login-wrapper {
  display: flex;
  max-width: 900px;
  width: 95%;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Image Side */
.login-image {
  flex: 1;
  background: url('https://thejob.id/assets/img/covers/singimage .jpg') no-repeat center center;
  background-size: cover;
  min-height: 560px;
  position: relative;
}

.login-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

/* Form Side */
.login-form-side {
  flex: 1;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  position: relative;
}

/* Decorative Accent */
.login-form-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

/* Typography */
.login-form-side h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-form-side p {
  color: #64748b;
  margin-bottom: 32px;
  font-size: 15px;
  line-height: 1.5;
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  background: #f9fafb;
  color: #1f2937;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Select Dropdown */
.form-group select,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 15px;
  background: #f9fafb;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.form-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Primary Button */
.login-button-submit {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  width: 100%;
  border: none;
  padding: 16px 24px;
  font-weight: 600;
  border-radius: 12px;
  font-size: 16px;
  margin-top: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.login-button-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.login-button-submit:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.login-button-submit:hover::before {
  left: 100%;
}

.login-button-submit:active {
  transform: translateY(0);
}

.login-button-submit:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Green variant for Register */
.login-button-submit.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.login-button-submit.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Checkbox & Remember Me */
.d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin: 16px 0;
  color: #64748b;
}

.d-flex label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.d-flex input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.d-flex a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.d-flex a:hover {
  color: #2563eb;
}

/* Divider */
.text-center {
  text-align: center;
}

.text-center .text-muted {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
  font-size: 13px;
  margin: 24px 0 16px;
}

.text-center .text-muted::before,
.text-center .text-muted::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* Social Auth Buttons */
.auth-alt {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 8px 0 16px;
}

.auth-alt button {
  flex: 1;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  padding: 12px 20px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-alt button:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
}

.auth-alt button i {
  font-size: 18px;
}

.auth-alt button .fa-google {
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer Links */
.login-footer {
  font-size: 14px;
  text-align: center;
  margin-top: 24px;
  color: #64748b;
}

.login-footer a {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-message::before {
  content: '⚠️';
}

/* Form Check (Terms) */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 13px;
  color: #64748b;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.form-check a {
  color: #3b82f6;
  text-decoration: none;
}

.form-check a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE - Tablet ===== */
@media (max-width: 900px) {
  .login-wrapper {
    max-width: 480px;
    flex-direction: column;
  }
  
  .login-image {
    min-height: 200px;
    max-height: 220px;
  }
  
  .login-form-side {
    padding: 36px 32px;
  }
}

/* ===== RESPONSIVE - Mobile ===== */
@media (max-width: 600px) {
  body {
    background: #fff;
  }
  
  .tile-bg-container.single,
  .tile-bg-container.single img,
  .tile-dark-overlay {
    display: none !important;
  }
  
  .login-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    background: #fff;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  
  .login-image {
    display: none;
  }
  
  .login-mobile-banner {
    display: block !important;
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: 0;
  }
  
  .login-form-side {
    flex: 1;
    padding: 24px 20px 40px;
    background: #fff;
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 32px;
  }
  
  .login-form-side::before {
    display: none;
  }
  
  .login-form-side h2 {
    font-size: 24px;
    text-align: center;
  }
  
  .login-form-side p {
    text-align: center;
    margin-bottom: 28px;
  }
  
  .form-group input,
  .form-group select {
    padding: 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .login-button-submit {
    padding: 18px;
    font-size: 16px;
    margin-top: 16px;
  }
  
  .auth-alt {
    flex-direction: column;
  }
  
  .auth-alt button {
    width: 100%;
  }
  
  .login-footer {
    margin-top: 32px;
  }
  
  .error-message {
    text-align: center;
  }
}

/* ===== Hidden Elements ===== */
@media (min-width: 769px) {
  .login-mobile-banner {
    display: none !important;
  }
}

/* ===== Background Shapes (Optional decoration) ===== */
.background-shapes {
  display: none; /* Hide for cleaner look */
}