/* Login Page CSS */
:root {
    --primary-color: #e51d31;
    --primary-hover: #c82333;
    --secondary-color: #000000;
    --text-color: #333;
    --light-text: #fff;
    --font-family: "Jost", sans-serif;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(255, 255, 255, 0.9);
    --font-size: 17px;
  }
  body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-size: var(--font-size) !important;
    font-family: var(--font-family);
  }
  .login-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url(../images/donswift-login-bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: stretch;
  }
  .split-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
  }
  .brand-section {
    flex: 0 0 45%;
    position: relative;
    background-image: url(../images/donswift-login-image.jpg);
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    padding: 70px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
  }
  .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary-color);
    opacity: 0.9;
    z-index: 1;
  }
  .brand-content {
    max-width: 400px;
    position: relative;
    z-index: 2;
  }
  .brand-logo .logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
    text-decoration: none;
  }
  .brand-logo .highlight {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
  }
  .brand-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 30px 0 20px;
  }
  .brand-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.9;
  }
  .user-logo {
    text-align: center;
    margin-bottom: 40px;
  }
  .user-logo img {
    width: 220px;
    height: auto;
    max-width: 100%;
  }
  .login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .login-header {
    text-align: center;
    margin-bottom: 30px;
  }
  .login-header h2 {
    color: var(--text-color);
    margin-bottom: 10px;
  }
  .welcome-text {
    color: #666;
    font-size: 1rem;
  }
  .form-group {
    margin-bottom: 20px;
  }
  .input-wrapper {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
  }
  .input-wrapper .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
  }
  .form-input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    transition: all 0.3s ease;
  }
  .form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
    outline: none;
  }
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  .remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 0.9rem;
  }
  .forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }
  .forgot-password:hover {
    color: var(--primary-hover);
  }
  .login-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
  }
  .login-btn i {
    transition: transform 0.3s ease;
  }
  .login-btn:hover i {
    transform: translateX(5px);
  }
  /* Responsive */
  @media (max-width: 968px) {
    .split-wrapper {
      flex-direction: column;
      max-width: none;
    }

    .login-box{
      width:100%;
      padding: 0px;
    }

    .brand-section {
      flex: 0 0 30%;
      display:none; 
    }
    .login-section {
      flex: 0 0 70%;
    }
    .user-logo img {
      width: 180px;
    }
  }
  @media (max-width: 480px) {
    .login-container {
      padding: 0;
    }
    .user-logo img {
      width: 180px;
    }
  }
  
/* --- Classy Login Enhancements --- */
.login-box.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 40px 36px 32px 36px;
  transition: box-shadow 0.3s;
  max-width: 440px;
  min-width: 340px;
  width: 100%;
}
.login-box.glass-effect:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.22);
}

.form-input {
  background: rgba(255,255,255,0.7);
  border: 1.5px solid #e5e5e5;
  font-size: 1rem;
  color: #222;
  transition: border 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(229, 29, 49, 0.10);
}

.input-wrapper .icon {
  color: var(--primary-color);
  font-size: 1.1rem;
  left: 18px;
}

.login-btn {
  background: linear-gradient(90deg, var(--primary-color) 0%, #ff5f6d 100%);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(229, 29, 49, 0.10);
  border: none;
  font-size: 1.05rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.login-btn:active {
  transform: scale(0.98);
}
.login-btn:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* Add a subtle fade-in animation */
.login-box.glass-effect, .brand-section, .login-section {
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive tweaks for mobile */
@media (max-width: 600px) {
  .login-box.glass-effect {
    padding: 24px 8px 20px 8px;
    border-radius: 12px;
    max-width: 98vw;
    min-width: unset;
  }
  .brand-section {
    padding: 30px 10px;
  }
}

/* Focus outline for accessibility */
.form-input:focus, .login-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
  