/* ==============================================
   LOGIN CUSTOM STYLES
   ============================================== */

/* Page Background */
.authentication-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.authentication-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 106, 22, 0.05) 0%, rgba(255, 138, 69, 0.1) 100%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.authentication-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40%;
  height: 60%;
  background: linear-gradient(135deg, rgba(87, 95, 97, 0.03) 0%, rgba(87, 95, 97, 0.06) 100%);
  clip-path: polygon(0% 40%, 100% 0%, 100% 100%, 0% 100%);
}

/* Login Card */
.authentication-bg {
  background: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.6s ease-out;
  min-height: 100vh;
}

@media (max-width: 991px) {
  .authentication-bg {
    border-radius: 12px;
  }
}

/* Left Image Section */
.authentication-cover-img {
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.12));
  transition: transform 0.5s ease;
  max-width: 100%;
  height: auto;
}

.authentication-cover-img:hover {
  transform: scale(1.03);
}

/* Logo & Brand */
.app-brand {
  margin-bottom: 1.5rem !important;
  text-align: center;
}

.app-brand-text {
  background: linear-gradient(135deg, #FF6A16 0%, #ff8a45 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.875rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

/* Welcome Title */
h4 {
  color: #575F61;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.375rem !important;
  letter-spacing: -0.02em;
  text-align: center;
}

h4 + p {
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 1.5rem !important;
}

/* Form Controls */
.form-label {
  font-weight: 600;
  color: #575F61;
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#formAuthentication .col-12 {
  margin-bottom: 0.875rem;
}

.form-control {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #ffffff;
}

.form-control:focus {
  border-color: #FF6A16;
  box-shadow: 0 0 0 3px rgba(255, 106, 22, 0.1);
  background-color: #ffffff;
  outline: none;
}

.form-control:hover {
  border-color: #cbd5e0;
  background-color: #ffffff;
}

.form-control::placeholder {
  color: #a0aec0;
  font-style: italic;
}

/* Password Toggle */
.input-group-merge {
  position: relative;
}

.input-group-merge .form-control {
  padding-right: 3rem;
}

.input-group-text {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 1rem;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.input-group-text:hover {
  color: #FF6A16;
}

.input-group-text i {
  font-size: 1.25rem;
  color: #a0aec0;
  transition: color 0.3s ease;
}

.input-group-text:hover i {
  color: #FF6A16;
}

/* Forgot Password Link */
.d-flex.justify-content-between a {
  color: #FF6A16;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.d-flex.justify-content-between a:hover {
  color: #e65f14;
  text-decoration: underline;
}

/* Remember Me Checkbox */
.form-check {
  padding-left: 1.75rem;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border: 2px solid #cbd5e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-check-input:checked {
  background-color: #FF6A16;
  border-color: #FF6A16;
  box-shadow: 0 0 0 3px rgba(255, 106, 22, 0.2);
}

.form-check-input:focus {
  border-color: #FF6A16;
  box-shadow: 0 0 0 3px rgba(255, 106, 22, 0.1);
}

.form-check-label {
  color: #4a5568;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

/* Login Button */
.btn-primary {
  background: linear-gradient(135deg, #FF6A16 0%, #ff8a45 100%);
  border: none;
  border-radius: 10px;
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(255, 106, 22, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 0.375rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e65f14 0%, #d55412 100%);
  box-shadow: 0 8px 25px rgba(255, 106, 22, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(255, 106, 22, 0.35);
}

/* Register Link */
.text-center a {
  color: #FF6A16;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.text-center a:hover {
  color: #e65f14;
  text-decoration: underline;
}

/* Divider */
.divider {
  position: relative;
  margin: 1.25rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider-text {
  position: relative;
  display: inline-block;
  background: #ffffff;
  padding: 0 1rem;
  color: #a0aec0;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Social Login Buttons */
.btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-icon i {
  font-size: 1.35rem;
  transition: transform 0.3s ease;
}

.btn-icon:hover i {
  transform: scale(1.1);
}

.btn-label-facebook {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.2);
}

.btn-label-facebook:hover {
  background: rgba(24, 119, 242, 0.1);
  border-color: #1877f2;
}

.btn-label-google-plus {
  color: #ea4335;
  border-color: rgba(234, 67, 53, 0.2);
}

.btn-label-google-plus:hover {
  background: rgba(234, 67, 53, 0.1);
  border-color: #ea4335;
}

.btn-label-twitter {
  color: #1da1f2;
  border-color: rgba(29, 161, 242, 0.2);
}

.btn-label-twitter:hover {
  background: rgba(29, 161, 242, 0.1);
  border-color: #1da1f2;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  h4 {
    font-size: 1.5rem;
  }
  
  .app-brand-text {
    font-size: 2rem !important;
  }
  
  .form-control {
    padding: 0.75rem 1rem;
  }
  
  .btn-primary {
    padding: 0.875rem;
  }
}

@media (max-width: 576px) {
  h4 {
    font-size: 1.35rem;
  }
  
  .app-brand-text {
    font-size: 1.75rem !important;
  }
  
  .btn-icon {
    width: 45px;
    height: 45px;
  }
  
  .btn-icon i {
    font-size: 1.25rem;
  }
}

/* Container Width */
.w-px-400 {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

/* Loading State */
.btn-primary:disabled {
  background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Error State */
.form-control.is-invalid {
  border-color: #f56565;
  padding-right: 3rem;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(245, 101, 101, 0.15);
}

.invalid-feedback {
  color: #f56565;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Success State */
.form-control.is-valid {
  border-color: #48bb78;
}

.form-control.is-valid:focus {
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.15);
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================================
   END LOGIN CUSTOM STYLES
   ============================================== */
#swal2-title{
  text-align: center!important;
}

.swal2-modal.swal2-popup .swal2-title{
  max-width: 100%!important;
}
