* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --midnight: #0a1929;
  --ocean: #1e3a5f;
  --coral: #ff6b6b;
  --sky: #4ecdc4;
  --gold: #ffd93d;
  --silver: #f8f9fa;
  --mist: #e8eef2;
}

body {
  font-family: "DM Sans", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px;
  position: relative;
  overflow: hidden;
}

.login-container {
  max-width: 480px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 5px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.login-header {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--ocean) 100%);
  padding: 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--sky), var(--gold));
}

.login-header::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(78, 205, 196, 0.1) 0%,
    transparent 70%
  );
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.brand-logo {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(78, 205, 196, 0.3);
  position: relative;
  z-index: 1;
}

.brand-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Body */
.login-body {
  padding: 45px 40px;
}

/* Navigation */
.login-nav {
  display: flex;
  gap: 8px;
  background: var(--mist);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 35px;
}

.nav-item {
  flex: 1;
}

.nav-link {
  display: block;
  padding: 14px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--ocean);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav-link.active {
  background: white;
  color: var(--midnight);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-link:not(.active):hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--midnight);
}

/* Form */
.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--sky);
  font-size: 1.1rem;
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: 2px solid var(--mist);
  border-radius: 14px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  background: var(--silver);
  color: var(--midnight);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--sky);
  background: white;
  box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

.form-control::placeholder {
  color: #a0aec0;
}

.input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.input-icon:hover {
  color: var(--sky);
}

/* Remember & Forgot */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--sky);
}

.checkbox-wrapper label {
  color: var(--ocean);
  cursor: pointer;
  user-select: none;
}

.forgot-link {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--coral);
  text-decoration: underline;
}

/* Button */
.btn-login {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--midnight) 0%, var(--ocean) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 20px rgba(10, 25, 41, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-login::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 ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 25, 41, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-login i {
  margin-right: 8px;
}

/* Alert */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.4s ease;
  border-left: 4px solid;
}

.alert-danger {
  background: rgba(255, 107, 107, 0.1);
  color: #c92a2a;
  border-color: var(--coral);
}

.alert i {
  font-size: 1.2rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer */
.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--mist);
  color: #718096;
  font-size: 0.9rem;
}

.signup-link {
  color: var(--sky);
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--coral);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 576px) {
  .login-body {
    padding: 35px 25px;
  }

  .login-header {
    padding: 40px 25px;
  }

  .brand-logo {
    font-size: 2.8rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 12px 10px;
  }
}


