/* Admin Authentication & Login Styles (Light & Clean Frosted Glass Theme - High Contrast) */

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

/* Base Webkit Autofill Override for Light Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px #f8fafc inset !important;
  -webkit-text-fill-color: #0f172a !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Page Container with Light Studio Background Overlay */
.admin-auth-page {
  height: 100vh !important;
  max-height: 100vh !important;
  width: 100vw !important;
  overflow: hidden !important;
  background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(248, 250, 252, 0.82) 40%,
      rgba(248, 250, 252, 0.65) 100%
    ),
    url("/studio_bg.png") center/cover no-repeat !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 64px;
  box-sizing: border-box;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

/* Left Section: Branding & Quote */
.admin-auth-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  max-height: 85vh;
  max-width: 480px;
  box-sizing: border-box;
  z-index: 2;
}

.admin-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: contain;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.admin-brand-name {
  color: #0f172a !important;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-quote-block {
  margin: 24px 0;
}

.admin-quote-heading {
  color: #0f172a !important;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  text-shadow: none !important;
}

.admin-quote-subhead {
  color: #1e293b !important;
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  text-shadow: none !important;
}

.admin-quote-caption {
  color: #334155 !important;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  text-shadow: none !important;
}

.admin-copyright {
  color: #475569 !important;
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0;
  text-shadow: none !important;
}

/* Right Section: Form Wrapper & Frosted White Glass Card */
.admin-auth-right {
  width: 100%;
  max-width: 420px;
  z-index: 2;
  margin-left: 32px;
}

.admin-glass-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 24px !important;
  padding: 44px 38px !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  box-sizing: border-box;
}

/* Form Typography */
.admin-card-subtitle {
  color: #334155 !important;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 28px 0;
  text-align: center;
}

.admin-flash-alert {
  margin-bottom: 20px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #b91c1c;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

/* Form Elements */
.admin-form-group {
  margin-bottom: 20px;
}

.admin-input-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a !important;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}

.admin-input-field {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  outline: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.admin-input-field::placeholder {
  color: #64748b !important;
}

.admin-input-field:focus {
  border-color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

.admin-password-wrapper {
  position: relative;
}

.admin-password-input {
  padding-right: 42px;
}

.admin-eye-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: color 0.15s ease;
}

.admin-eye-toggle:hover {
  color: #0f172a;
}

.admin-eye-icon {
  width: 16px;
  height: 16px;
}

.admin-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-checkbox {
  width: 15px;
  height: 15px;
  accent-color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
}

.admin-checkbox-label {
  font-size: 0.8rem;
  color: #334155 !important;
  cursor: pointer;
  user-select: none;
}

.admin-submit-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff !important;
  background: #0f172a !important;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2) !important;
}

.admin-submit-btn:hover {
  background: #1e293b !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3) !important;
  transform: translateY(-1px);
}

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

/* Helper utilities */
.hidden {
  display: none !important;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .admin-auth-page {
    flex-direction: column;
    justify-content: center;
    padding: 32px 20px;
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
  }
  .admin-auth-left {
    min-height: auto;
    max-width: 100%;
    margin-bottom: 32px;
    align-items: center;
    text-align: center;
  }
  .admin-auth-right {
    margin-left: 0;
    max-width: 100%;
  }
  .admin-quote-block {
    margin: 20px 0;
  }
  .admin-quote-heading {
    font-size: 1.625rem;
  }
}
