/* FE Login Styles - Soft Orange Elegant Theme */
body.app.flex-row {
  background: linear-gradient(135deg, #ffb347 0%, #ffcc80 50%, #ffe0b2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(255, 179, 71, 0.3);
  padding: 40px;
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ffb347, #ffcc80, #ffe0b2, #ffcc80, #ffb347);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Header Section */
.login-header {
  margin-bottom: 35px;
  position: relative;
}

.login-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 8px rgba(255, 179, 71, 0.2));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: #ff9966;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(255, 153, 102, 0.1);
}

.login-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  font-weight: 500;
}

/* Form Section */
.login-form {
  margin-bottom: 30px;
}

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

.input-group-text {
  background: linear-gradient(135deg, #ffb347, #ffcc80);
  color: white;
  border: none;
  border-radius: 12px 0 0 12px;
  padding: 12px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group-text i {
  width: 20px;
  text-align: center;
}

.form-control {
  border: 2px solid #e8e8e8;
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-control:focus {
  border-color: #ffb347;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
  outline: none;
}

.input-group:focus-within .input-group-text {
  background: linear-gradient(135deg, #ffa026, #ffb347);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
}

/* Security Code Section */
.security-code-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.refresh-code-btn {
  background: linear-gradient(135deg, #ffb347, #ffcc80);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.refresh-code-btn:hover {
  background: linear-gradient(135deg, #ffa026, #ffb347);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.3);
}

.refresh-code-btn:active {
  transform: rotate(180deg) scale(0.95);
}

.security-code-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.security-code-input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  color: #ff9966;
  transition: all 0.3s ease;
  caret-color: #ffb347;
}

.security-code-input:focus {
  border-color: #ffb347;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
  outline: none;
  transform: scale(1.05);
}

.security-code-text {
  font-size: 13px;
  color: #999;
}

.security-code-text strong {
  color: #ff9966;
  font-size: 16px;
  letter-spacing: 3px;
}

/* Buttons */
.btn-login {
  background: linear-gradient(135deg, #ffb347 0%, #ffcc80 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

.btn-login:hover {
  background: linear-gradient(135deg, #ffa026 0%, #ffb347 100%);
  box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
  transform: translateY(-2px);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login:disabled {
  background: #ccc;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-clear-cache {
  background: white;
  color: #ffb347;
  border: 2px solid #ffb347;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-clear-cache:hover {
  background: #fff8f0;
  border-color: #ffa026;
  color: #ffa026;
}

/* Footer */
.login-footer {
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.footer-text {
  font-size: 11px;
  color: #999;
  line-height: 1.6;
}

/* Alert */
.alert {
  border-radius: 12px;
  border: none;
  padding: 15px;
  font-size: 14px;
}

.alert-danger {
  background: #fff5f5;
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
}

/* Responsive */
@media (max-width: 576px) {
  .login-container {
    padding: 30px 20px;
    border-radius: 20px;
  }

  .login-logo {
    width: 80px;
    height: 80px;
  }

  .login-title {
    font-size: 22px;
  }

  .security-code-input {
    width: 40px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 400px) {
  .security-code-container {
    gap: 6px;
  }

  .security-code-input {
    width: 35px;
    height: 40px;
    font-size: 18px;
  }
}

/* Loading Spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

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

/* Icon enhancements */
.input-group-prepend {
  position: relative;
  z-index: 2;
}

/* Success state */
.form-control.is-valid {
  border-color: #28a745;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

/* Hover effects */
.login-container:hover {
  box-shadow: 0 25px 70px rgba(255, 179, 71, 0.4);
}
