:root {
  --primary: #2c3e50;
  /* Dark Blueish */
  --secondary: #3498db;
  /* Light Blue */
  --accent: #e74c3c;
  /* Red Highlight */
  --light: #ecf0f1;
  /* Light Gray */
  --dark: #1a252f;
  --text: #495057;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  background: linear-gradient(rgba(44, 62, 80, 0.92), rgba(44, 62, 80, 0.92)),
    url(https://images.unsplash.com/photo-1521587760476-6c12a4b040da?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80)
      no-repeat center center / cover;
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  min-height: 100vh;
  font-family: "Merriweather", serif;
  display: flex;
  align-items: center;
}

.login-container {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.login-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  background: white;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.login-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(30deg);
}

.brand-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.brand-logo i {
  margin-right: 12px;
  font-size: 1.8rem;
}

.login-header h2 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.login-header p {
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.login-body {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
}

.form-label i {
  margin-right: 8px;
  font-size: 1.1rem;
  color: var(--primary);
}

.form-control {
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  font-size: 0.95rem;
  transition: var(--transition);
  height: 48px;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.2);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

.password-toggle:hover {
  color: var(--primary);
}

.btn-login {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  transition: var(--transition);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transform: translateY(-2px);
}

.btn-login i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.remember-forgot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.form-check-input {
  width: 1.1em;
  height: 1.1em;
  margin-top: 0.1em;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  color: var(--text);
}

.forgot-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.forgot-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.footer-text {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text);
  font-size: 0.9rem;
}

.footer-text a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-text a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.sidebar {
  background: var(--primary);
  color: white;
  height: 100vh;
  position: fixed;
  width: 250px;
  transition: all 0.3s;
}
.sidebar-header {
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}
.sidebar-menu {
  padding: 20px 0;
}
.sidebar-menu a {
  color: white;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  transition: all 0.3s;
}
.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.sidebar-menu a i {
  margin-right: 10px;
}
.main-content {
  margin-left: 250px;
  padding: 20px;
  width: calc(100% - 250px);
}
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}
.nav-pills .nav-link.active {
  background-color: var(--primary);
}

/* Add to your CSS */
.validated:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.validated:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
