/* BakeTrack Login Page Styles */

* {
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-container {
  min-height: 100vh;
  padding: 20px;
}

.login-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  margin: auto;
  min-height: 600px;
}

/* Left Panel - System Theme */
.login-left {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  padding: 3rem;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.login-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bakery" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23bakery)"/></svg>');
  opacity: 0.3;
}

.bakery-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.welcome-text {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.welcome-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

/* Bakery Features List */
.bakery-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bakery-features li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.bakery-features li:hover {
  transform: translateX(5px);
}

.bakery-features i {
  margin-right: 1rem;
  width: 20px;
  color: rgba(255, 255, 255, 0.8);
}

/* Floating Elements Animation */
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.15);
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Right Panel - Login Form */
.login-right {
  padding: 3rem;
  background: white;
}

.brand-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #2563eb, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Form Styling */
.form-floating {
  margin-bottom: 1.5rem;
}

.form-floating > .form-control {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1rem 0.75rem;
  height: auto;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-floating > .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.form-floating > label {
  color: #6c757d;
  font-weight: 500;
  padding-left: 1rem;
}

/* Login Button */
.btn-login {
  background: linear-gradient(45deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 10px;
  padding: 0.8rem 2rem;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-login::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;
}

.btn-login:hover::before {
  left: 100%;
}

/* Alert Styling */
.alert-custom {
  border-radius: 10px;
  border: none;
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Security Badge */
.security-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .login-left {
    order: 2;
    min-height: 200px;
    padding: 2rem;
  }

  .login-right {
    order: 1;
    padding: 2rem;
  }

  .bakery-features {
    display: none;
  }
}

@media (max-width: 768px) {
  .login-wrapper {
    margin: 10px;
    border-radius: 15px;
  }

  .login-left {
    padding: 1.5rem;
    min-height: 150px;
  }

  .login-right {
    padding: 1.5rem;
  }

  .brand-title {
    font-size: 2rem;
  }

  .bakery-icon {
    font-size: 3rem;
  }

  .welcome-text {
    font-size: 1.4rem;
  }

  .welcome-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .login-container {
    padding: 10px;
  }

  .login-wrapper {
    margin: 0;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .form-floating > .form-control {
    font-size: 0.9rem;
  }

  .btn-login {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }
}

/* Loading Animation */
.login-loading {
  display: none;
}

.login-loading.show {
  display: inline-block;
}

/* Focus Management */
.form-control:focus {
  outline: none;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .floating-icon,
  .bakery-icon {
    animation: none;
  }

  .btn-login:hover {
    transform: none;
  }

  .form-floating > .form-control:focus {
    transform: none;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }

  .login-wrapper {
    box-shadow: none;
    background: white;
  }

  .login-left {
    display: none;
  }

  .floating-elements {
    display: none;
  }
}
