:root {
  --primary-color: #ff6b00; /* Orange from the ITESA logo */
  --primary-hover: #e05e00;
  --bg-dark: #090b0e;
  --card-bg: rgba(20, 24, 33, 0.7);
  --input-bg: rgba(255, 255, 255, 0.04);
  --input-focus-border: #ff6b00;
  --text-main: #ffffff;
  --text-muted: #8e9cae;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Ambient glowing background blobs */
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(160px);
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
  animation: float-slow 20s infinite alternate;
}

.blob-orange {
  background: radial-gradient(circle, #ff6b00 0%, rgba(255,107,0,0) 70%);
  top: -100px;
  left: -100px;
}

.blob-blue {
  background: radial-gradient(circle, #0056b3 0%, rgba(0,86,179,0) 70%);
  bottom: -100px;
  right: -100px;
  animation-delay: -10s;
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.2);
  }
}

/* Main Container wrapper */
.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

/* Glassmorphic card design */
.login-card {
  background: var(--card-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px 35px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Logo Styling */
.logo-container {
  text-align: center;
  margin-bottom: 25px;
}

.logo-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid rgba(255, 107, 0, 0.3);
  padding: 2px;
  background-color: #000;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.15);
  transition: transform 0.5s ease;
}

.logo-img:hover {
  transform: scale(1.05) rotate(5deg);
  border-color: var(--primary-color);
}

/* Header text styling */
.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Form and Inputs */
.form-group {
  position: relative;
  margin-bottom: 22px;
}

.form-control-custom {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  border-color: var(--input-focus-border);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.15);
}

/* Styling for Floating label effect */
.form-group label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.3s ease;
  background: transparent;
  padding: 0 4px;
}

/* When input is focused or has content, float the label */
.form-control-custom:focus ~ label,
.form-control-custom:valid ~ label,
.form-control-custom:-webkit-autofill ~ label,
.form-control-custom.has-value ~ label {
  top: 0;
  font-size: 0.75rem;
  color: var(--primary-color);
  transform: translateY(-50%);
  background: #11141b; /* solid color matching glasscard visual center */
  border-radius: 4px;
  font-weight: 600;
}

/* Override autofill styling to match our dark theme and prevent browser default backgrounds */
.form-control-custom:-webkit-autofill,
.form-control-custom:-webkit-autofill:hover, 
.form-control-custom:-webkit-autofill:focus, 
.form-control-custom:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text-main) !important;
  -webkit-box-shadow: 0 0 0 1000px #11141b inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Password eye icon */
.field-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  z-index: 10;
}

.field-icon:hover {
  color: var(--text-main);
}

/* Submit Button styling */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, #ff6b00 0%, #ff9e00 100%);
  border: none;
  border-radius: 12px;
  padding: 16px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 0, 0.45);
  background: linear-gradient(135deg, #ff7c1a 0%, #ffb01a 100%);
}

.btn-submit:active {
  transform: translateY(1px);
}

/* Footer text */
.login-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
