/* ========================================
   VARDAN JEWELLERS – ADMIN LOGIN STYLESHEET
   Premium, luxury light cream aesthetic
   ======================================== */

:root {
  --color-primary: #4A101D;      /* Deep burgundy */
  --color-accent: #C5A880;       /* Gold */
  --color-accent-hover: #B59870; /* Gold Hover */
  --bg-dark: #1A1A1A;
  --bg-primary: #FFFDF8;         /* Luxury cream */
  --border-light: rgba(74, 16, 29, 0.1);
  --border-medium: rgba(197, 168, 128, 0.35);
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #F8F5EE;
  color: #333333;
  min-height: 100vh;
  overflow-x: hidden;
}

/* LOGIN WRAPPER */
.login-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  padding: 20px;
  box-sizing: border-box;
  background: radial-gradient(circle at center, #FFFDF8 0%, #F5F0E1 100%);
  z-index: 1;
}

/* BACKGROUND ORNAMENTAL EFFECTS */
.login-wrapper::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 16, 29, 0.05) 0%, transparent 75%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* CARD CONTAINER */
.login-card-container {
  width: 100%;
  max-width: 460px;
  perspective: 1000px;
  z-index: 2;
}

/* LOGIN CARD */
.login-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 50px 40px;
  box-shadow: 0 15px 45px rgba(74, 16, 29, 0.05), 
              0 0 30px rgba(197, 168, 128, 0.05);
  transition: var(--transition-smooth);
}

.login-card:hover {
  border-color: var(--border-medium);
  box-shadow: 0 20px 55px rgba(74, 16, 29, 0.08), 
              0 0 35px rgba(197, 168, 128, 0.08);
}

/* HEADER SECTION */
.login-header {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-link {
  display: block;
  max-width: 100%;
  margin: 0 auto 20px auto;
  transition: transform 0.3s ease;
}

.login-logo-link:hover {
  transform: scale(1.03);
}

.login-logo-img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
}

.login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 8px 0;
  text-transform: uppercase;
}

.login-subtitle {
  font-size: 0.88rem;
  font-weight: 400;
  color: #666666;
  letter-spacing: 0.03em;
  margin: 0;
}

/* FORM ELEMENTS */
.form-label-custom {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
  transition: var(--transition-smooth);
}

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

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--color-accent);
  font-size: 1.15rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  opacity: 0.95;
}

.form-control-custom {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background-color: #FFFDF8;
  border: 1.5px solid var(--border-medium);
  border-radius: 4px;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition-smooth);
  outline: none;
}

.form-control-custom::placeholder {
  color: #A09E96;
  font-weight: 400;
}

/* Custom Password Toggle button */
.form-control-custom[type="password"] {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: #999999;
  cursor: pointer;
  padding: 4px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  outline: none;
}

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

/* Focus States */
.form-control-custom:focus {
  background-color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(74, 16, 29, 0.06);
}

.form-control-custom:focus ~ .input-icon {
  color: var(--color-primary);
}

/* SUBMIT BUTTON */
.login-btn {
  background: linear-gradient(135deg, var(--color-primary) 0%, #360B14 100%);
  border: 1px solid var(--color-primary);
  color: #FFFFFF;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(74, 16, 29, 0.15);
}

.login-btn:hover {
  background: linear-gradient(135deg, #5B1625 0%, var(--color-primary) 100%);
  border-color: #5B1625;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 16, 29, 0.22);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(74, 16, 29, 0.15);
}

/* CUSTOM ERROR ALERT */
.alert-danger-custom {
  background-color: #FFF5F5;
  border: 1px solid #FEB2B2;
  color: #C53030;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  animation: slideDown 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

/* FOOTER / BACK TO SITE */
.login-footer {
  margin-top: 35px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(74, 16, 29, 0.08);
}

.back-link {
  color: #666666;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
}

.back-link:hover {
  color: var(--color-primary);
  transform: translateX(-4px);
}

.back-link i {
  transition: transform 0.3s ease;
}

/* Spinner adjustment */
.spinner-border {
  border-width: 0.15em;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 576px) {
  .login-card {
    padding: 35px 25px;
  }
  
  .login-title {
    font-size: 1.8rem;
  }
}
