/* Login Modern Styles */
:root {
  --primary-color: #4e9cff;
  --secondary-color: #798e98;
  --success-color: #3cd2a5;
  --warning-color: #ff9f0c;
  --danger-color: #ff6060;
  --dark-color: #35434a;
  --light-color: #c0cacf;
  --white-color: #ffffff;
  --gray-100: #c0cacf;
  --gray-200: #a8b6bc;
  --gray-300: #90a2aa;
  --gray-400: #798e98;
  --gray-500: #617a86;
  --gray-600: #526872;
  --gray-700: #44555e;
  --gray-800: #35434a;
  --gray-900: #273136;
}

/* Body and Layout */
body {
  font-family: 'Inter', sans-serif;
  background: #333333;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Authentication Wrapper */
.authentication-wrapper {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Authentication Inner */
.authentication-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Hide Left Side - Image Section */
.d-none.d-lg-flex {
  display: none !important;
}

/* Centered Login Form */
.authentication-inner .col-lg-5 {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  position: relative;
  width: 450px !important;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.authentication-inner .col-lg-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 25px;
  z-index: 1;
}

/* Login Form Container */
.w-px-400 {
  position: relative;
  z-index: 2;
  max-width: 400px;
  margin: 0 auto;
  padding: 2.5rem;
  width: 100%;
  text-align: center;
}

/* Logo Section */
.app-brand {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out;
}

.app-brand img {
  filter: brightness(0) invert(1) drop-shadow(0 10px 30px rgba(255, 255, 255, 0.3));
  transition: all 0.3s ease;
}

.app-brand:hover img {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(0 15px 40px rgba(255, 255, 255, 0.5));
}

/* Headings */
h3 {
  color: var(--white-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 0.8s ease-out;
}

p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  animation: slideInLeft 0.8s ease-out 0.2s both;
}

/* Form Elements */
.form-label {
  color: var(--white-color) !important;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  text-align: left;
  display: block;
}

.form-control {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 15px !important;
  padding: 1rem 1.25rem !important;
  color: var(--white-color) !important;
  font-size: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: left;
  width: 100%;
}

/* Input group specific styles */
.input-group-merge .form-control {
  border-radius: 15px !important;
  border-right: none !important;
  flex: 1;
  margin-right: 8px;
}

.input-group-merge .form-control:focus {
  border-radius: 15px !important;
  border-right: none !important;
}

/* Regular form control (not in input group) */
.mb-3 .form-control {
  border-radius: 15px !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6) !important;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(78, 156, 255, 0.25) !important;
  transform: translateY(-2px);
}

/* Input Group */
.input-group-merge {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group-text {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-left: none !important;
  border-radius: 15px !important;
  color: var(--white-color) !important;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  padding: 1rem 1.25rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  margin-left: 0;
  z-index: 2;
}

.input-group-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.input-group-text:hover::before {
  opacity: 1;
}

.input-group-text:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: var(--primary-color) !important;
  cursor: pointer;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.input-group-text:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3) !important;
}

.input-group-text i {
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.input-group-text:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(74, 144, 226, 0.3));
}

/* Password Toggle */
.cursor-pointer {
  cursor: pointer;
  transition: all 0.3s ease;
  border: none !important;
  background: transparent !important;
}

.cursor-pointer:hover {
  transform: scale(1.1);
}

/* Smooth icon transition */
.input-group-text i.ti-eye,
.input-group-text i.ti-eye-off {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-group-text:hover i.ti-eye,
.input-group-text:hover i.ti-eye-off {
  animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Links */
a {
  color: var(--primary-color) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-block;
  text-align: center;
}

a:hover {
  color: var(--white-color) !important;
  text-shadow: 0 0 10px rgba(78, 156, 255, 0.5);
  transform: translateY(-1px);
}

/* Password link */
.form-password-toggle a {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
}

/* Checkbox */
.form-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.form-check-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 6px !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  transition: all 0.3s ease;
  margin-right: 0.5rem;
}

.form-check-input:checked {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(78, 156, 255, 0.25) !important;
}

.form-check-label {
  color: var(--white-color) !important;
  font-weight: 500;
  margin-left: 0;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #4a90e2 0%, #7bb3f0 100%) !important;
  border: none !important;
  border-radius: 15px !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  width: 100%;
  margin: 0 auto;
  display: block;
}

.btn-primary::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-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7bb3f0 0%, #4a90e2 100%) !important;
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 15px 40px rgba(74, 144, 226, 0.5) !important;
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Alerts */
.alert {
  border: none !important;
  border-radius: 15px !important;
  backdrop-filter: blur(10px) !important;
  animation: slideInDown 0.5s ease-out !important;
}

.alert-danger {
  background: rgba(255, 96, 96, 0.15) !important;
  border-left: 4px solid var(--danger-color) !important;
  color: var(--white-color) !important;
}

.alert-warning {
  background: rgba(255, 159, 12, 0.15) !important;
  border-left: 4px solid var(--warning-color) !important;
  color: var(--white-color) !important;
}

.alert-heading {
  font-size: 1.2rem !important;
  margin-bottom: 0.5rem !important;
}

/* Text Center */
.text-center {
  animation: fadeInUp 0.8s ease-out 0.4s both;
  text-align: center !important;
}

.text-center span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.text-center a {
  display: inline;
  text-align: center;
}

/* Animations */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Responsive */
@media (max-width: 991px) {
  .authentication-inner .col-lg-5 {
    width: 400px !important;
    max-width: 400px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .w-px-400 {
    padding: 2rem;
    text-align: center;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  .app-brand img {
    height: 200px !important;
  }
}

@media (max-width: 576px) {
  .authentication-inner .col-lg-5 {
    width: 350px !important;
    max-width: 350px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .w-px-400 {
    padding: 1.5rem;
    text-align: center;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  .app-brand img {
    height: 150px !important;
  }
  
  .form-control {
    padding: 0.875rem 1rem !important;
  }
  
  .btn-primary {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
  }
}
