/* ============================================================
   login.css — Styles only for the Login Page
   This file is loaded ONLY on login.php — nowhere else.
============================================================ */

/* Full page centered layout with animated gradient background */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  /* Animated gradient background — gives premium feel */
  background: linear-gradient(
    135deg,
    #1B1D2A 0%,
    #252839 40%,
    #1f1032 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
}

/* Gradient moves slowly — feels alive */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* The white card that holds the form */
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;

  /* Strong 3D shadow — card feels like it is floating */
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,255,255,0.05);

  /* Card floats in with animation */
  animation: cardFloat 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Red header section of the card */
.login-card-header {
  background: var(--red);
  padding: 32px 36px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circles behind the header — depth effect */
.login-card-header::before,
.login-card-header::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}

.login-card-header::before {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
}

.login-card-header::after {
  width: 120px;
  height: 120px;
  bottom: -40px;
  left: -20px;
}

.login-logo {
  font-size: 44px;
  display: block;
  margin-bottom: 10px;

  /* Logo bounces in */
  animation: logoBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes logoBounce {
  from { transform: scale(0) rotate(-20deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

.login-card-header h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.login-card-header p {
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  position: relative;
  z-index: 1;
}

/* Form area */
.login-card-body {
  padding: 32px 36px 36px;
}

/* Input group with icon inside */
.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: #adb5bd;
  transition: color 0.2s;
  z-index: 1;
}

.input-with-icon input {
  padding-left: 42px;
}

.input-with-icon input:focus ~ i,
.input-with-icon:focus-within i {
  color: var(--red);
}

/* Eye icon for password toggle */
.eye-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #adb5bd;
  font-size: 17px;
  transition: color 0.2s;
  z-index: 1;
}

.eye-toggle:hover {
  color: var(--red);
}

/* Submit button — full width with 3D press effect */
.login-btn {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--red-shadow);
  letter-spacing: 0.02em;
}

.login-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--red-shadow);
}

/* Press down on click */
.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--red-shadow);
}