/* Modern Beauty Salon Login Styles */
body {
    background: url('../images/login2.png') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Playfair Display', serif;
}

:root {
  --primary-gold: #db1fb2;
  --secondary-gold: #d441dc;
  --dark-bg: #2c1a3a;
  --light-bg: #f9f4ff;
  --accent-pink: #e8c4d0;
  --soft-purple: #d8c0d8;
  --text-dark: #333;
  --text-light: #f8f8f8;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  /* background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); */
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Decorative beauty elements */
.beauty-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.beauty-element {
  position: absolute;
  opacity: 0.1;
  animation: float 15s infinite ease-in-out;
  font-size: 3rem;
}

.beauty-element:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.beauty-element:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: -3s;
}

.beauty-element:nth-child(3) {
  bottom: 15%;
  left: 15%;
  animation-delay: -6s;
}

.beauty-element:nth-child(4) {
  bottom: 25%;
  right: 20%;
  animation-delay: -9s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

.card-login {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-login:hover {
  transform: translateY(-5px);
}

.card-login::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,175,55,0.1) 0deg, transparent 70%);
  z-index: -1;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.card-login h3 {
  color: var(--primary-gold);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 15px;
}

.card-login h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
  border-radius: 2px;
}

/* Logo styling */
.logo-container {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.logo-icon {
  font-size: 4rem;
  color: var(--primary-gold);
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-icon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
  border-radius: 2px;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group .input-group-text {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50px;
  background: transparent;
  border: none;
  color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.2rem;
  pointer-events: none; /* Ensure icons don't interfere with input focus */
}

.form-control {
  height: 50px;
  padding: 12px 15px 12px 55px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark);
  width: 100%;
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
  background-color: rgba(255, 255, 255, 0.95);
  outline: none;
}

.form-control::placeholder {
  color: #aaa;
}

/* Button styling */
.btn-barber {
  background: linear-gradient(135deg, var(--primary-gold), #b82cb1);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  margin-bottom: 20px;
}

.btn-barber:hover {
  background: linear-gradient(135deg, #b82c95, var(--primary-gold));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-barber:active, .btn-barber:focus {
  background: linear-gradient(135deg, #9b27a3, #937a22);
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(163, 135, 39, 0.4);
  outline: none !important;
  border: none !important;
}

.btn-barber i {
  margin-right: 8px;
}

/* Error message styling */
.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #dc3545;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

/* Footer styling */
.login-footer {
  text-align: center;
  margin-top: 10px;
  color: var(--text-dark);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

.login-footer p {
  margin: 5px 0;
}

.login-footer a {
  color: var(--primary-gold);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-footer a:hover {
  text-decoration: underline;
  color: #b8962c;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .card-login {
    margin: 20px;
    padding: 30px 20px;
  }
  
  .card-login h3 {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    font-size: 3.5rem;
  }
  
  .beauty-element {
    font-size: 2rem;
  }
}