/* Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #111111;
}

/* Page layout */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at top left,
      rgba(215, 38, 61, 0.25),
      transparent 35%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 255, 255, 0.16),
      transparent 30%
    ),
    linear-gradient(135deg, #111111 0%, #1c1c1c 50%, #0b0b0b 100%);
}

/* Left section */
.login-left {
  position: relative;
  overflow: hidden;
  padding: 60px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(8px);
}

.brand-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.brand-badge,
.mobile-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #d7263d, #111111);
  box-shadow: 0 20px 40px rgba(215, 38, 61, 0.3);
  margin-bottom: 28px;
}

.brand-badge i,
.mobile-logo i {
  font-size: 1.7rem;
  color: #fff;
}

.brand-content h1 {
  font-size: 3.3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}

.brand-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.feature-box {
  display: grid;
  gap: 14px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.feature-item i {
  color: #d7263d;
}

/* Right section */
.login-right {
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 28px;
  padding: 40px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card h2 {
  color: #111827;
  font-size: 2rem;
}

.login-card p,
.signup-text,
.form-label,
.form-check-label {
  color: #4b5563;
}

.custom-input {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: 0.25s ease;
}

.custom-input:focus-within {
  border-color: #d7263d;
  box-shadow: 0 0 0 4px rgba(215, 38, 61, 0.12);
}

.custom-input .input-group-text {
  background: #fff;
  border: none;
  color: #6b7280;
  padding-left: 16px;
  padding-right: 10px;
}

.custom-input .form-control {
  border: none;
  box-shadow: none;
  padding: 16px 14px 16px 6px;
  font-size: 0.98rem;
}

.custom-input .form-control::placeholder {
  color: #9ca3af;
}

.password-toggle {
  border: none;
  background: #fff;
  color: #6b7280;
  padding: 0 16px;
}

.password-toggle:hover {
  background: #fff;
  color: #111827;
}

.forgot-link {
  text-decoration: none;
  font-weight: 600;
  color: #d7263d;
}

.forgot-link:hover {
  color: #a61b2d;
}

.login-btn {
  padding: 15px 18px;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, #d7263d, #111111);
  box-shadow: 0 15px 30px rgba(215, 38, 61, 0.25);
  transition: 0.3s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(215, 38, 61, 0.32);
}

.divider {
  position: relative;
  text-align: center;
  margin: 28px 0 22px;
}

.divider span {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 0 14px;
  color: #6b7280;
  font-size: 0.92rem;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.social-login {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  height: 50px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  transition: 0.25s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.signup-text a {
  text-decoration: none;
  font-weight: 700;
  color: #d7263d;
}

.signup-text a:hover {
  color: #a61b2d;
}

/* Responsive */
@media (max-width: 991.98px) {
  .login-card {
    max-width: 540px;
  }
}

@media (max-width: 575.98px) {
  .login-right {
    padding: 16px;
  }

  .login-card {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .login-card h2 {
    font-size: 1.7rem;
  }

  .social-login {
    gap: 10px;
  }
}
