/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #ffffff;
  height: 50vh;
  align-items: center;
  justify-content: center;
}

/* ===== Container ===== */
.container {
  display: flex;
  width: 100%;
  height: 600px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;

}

/* ===== Left Side (Form) ===== */
.login-left {
  flex: 1;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-form {
  width: 100%;
  max-width: 500px;
}

h2 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 25px;
  font-weight: 600;
}

/* ===== Input Fields ===== */
.input-box {
  position: relative;
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 14px 45px 14px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.input-box input:focus {
  border-color: #6c63ff;
}

.password-box {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  color: #aaa;
}

/* ===== Buttons ===== */
.btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6c63ff, #836fff);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.9;
}

/* ===== Links & Text ===== */
.forgot {
  text-align: right;
  margin-bottom: 20px;
}

.forgot a {
  color: #888;
  font-size: 0.9rem;
  text-decoration: none;
}

.forgot a:hover {
  text-decoration: underline;
}

.register-text {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #444;
}

.register-text a {
  color: #6c63ff;
  font-weight: 500;
  text-decoration: none;
}

.register-text a:hover {
  text-decoration: underline;
}

/* ===== Social Login ===== */
.social-text {
  margin-top: 25px;
  color: #555;
  font-size: 0.9rem;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  display: inline-block;
  margin: 0 8px;
  transition: 0.3s;
}

.social-icons img {
  width: 28px;
  height: 28px;
  filter: grayscale(100%);
}

.social-icons a:hover img {
  filter: none;
}

/* ===== Error Message ===== */
.error {
  background: #ffe5e5;
  color: #d9534f;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

/* ===== Right Side (Illustration) ===== */
.login-right {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-right img {
  width: 90%;
  max-width: 500px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    height: auto;
  }
  .login-right {
    display: none;
  }
  .login-left {
    padding: 40px 20px;
  }
}

/* alrt css */

/* ===== Floating Top Alerts ===== */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  /* Success alert */
  .alert.success {
    background: #e6ffed;
    color: #2e7d32;
    border: 1px solid #81c784;
  }

  /* Error alert */
  .alert.error {
    background: #ffeaea;
    color: #c62828;
    border: 1px solid #ef5350;
  }

  /* Slide and fade animation */
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translate(-50%, -20px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }

  /* Optional fade-out when hiding via JS */
  .alert.fade-out {
    opacity: 0;
    transform: translate(-50%, -20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
/* header */


/* HEADER STYLES */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1e1e2f;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 20px;
}

.header .logo img {
    height: 40px;
}

.profile-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.profile-dropdown .profile-pic {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-dropdown .dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    color: #333;
    min-width: 120px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 100;
}

.profile-dropdown .dropdown-menu a {
    padding: 10px 15px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.profile-dropdown .dropdown-menu a:hover {
    background-color: #f0f0f0;
}

.success{
  padding-bottom: 30px;
}
.download-btn{
  float: right;
}