/* Center container vertically and horizontally */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100svh;
    padding: 20px;
    background: linear-gradient(135deg, #1f2d3d, #2a3f54);
}

/* Box with shadow and rounded corners */
.login-box {
    background: linear-gradient(135deg, #6fa3db, #1995cf);
    padding: 45px 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Fancy animated heading */
.login-box h2 {
    margin-bottom: 35px;
    font-size: 28px;
    font-weight: 700;
    color: linear-gradient(90deg, #bad2eb, #ade78b);
    position: relative;
}

/* Input groups */
.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    font-weight: 600;
    color: #555;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

/* Input wrapper for icon inside input */
.input-wrapper {
    position: relative;
    margin-top: 0.5rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 3em 12px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    border-color: #2a3f54;
    box-shadow: 0 0 10px rgba(42, 63, 84, 0.3);
}

/* Feather icons */
.input-wrapper i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #2a3f54;
    transition: color 0.3s;
    pointer-events: auto;
    cursor: pointer;
}

.input-wrapper input:focus + i {
    color: #1f2d3d;
}

.feather {
    margin-top: 1rem;
}

/* Button */
button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2a3f54, #1f2d3d);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(135deg, #1f2d3d, #2a3f54);
    box-shadow: 0 5px 15px rgba(42, 63, 84, 0.4);
}

/* Input placeholders */
input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Optional: subtle animation for login box */
.login-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(42,63,84,0.05) 0%, transparent 70%);
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
}

/* Error message style */
.error-message {
    color: #ff4d4d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid #ff4d4d;
    padding: 10px;
    border-radius: 6px;
    display: none;
  }

.error-message.show {
    display: block;
}



/* Tablets (portrait & small landscape) */
@media (min-width: 780px) and (max-width: 1024px) {
    .login-box {
      max-width: 500px;        /* Slightly wider */
      padding: 50px 45px;      /* More breathing room */
      min-height: 45svh;        /* Fill most of the screen */
    }
  
    .login-box h2 {
      font-size: 30px;
      margin-bottom: 40px;
    }
  
    .input-wrapper input {
      font-size: 18px;
      padding: 14px 3em 14px 14px;
    }
  
    button {
      font-size: 18px;
      padding: 16px;
    }
  }
  
  /* Mobile devices */
  @media (max-width: 779px) {
    .login-container {
      padding: 10px;
      min-height: 99.9svh;
    }
  
    .login-box {
      width: 90%;
      max-width: 100%;
      padding: 35px 25px;
      min-height: 15svh;       /* Taller to reduce bottom space */
      border-radius: 15;       /* Full-width look */
      margin-top: -4rem;
    }
  
    .login-box h2 {
      font-size: 24px;
      margin-bottom: 25px;
    }
  
    .input-wrapper input {
      font-size: 16px;
      padding: 12px 3em 12px 12px;
    }
  
    button {
      font-size: 16px;
      padding: 14px;
    }
  }
  
  /* Very small phones (e.g., iPhone SE, 414px and down) */
  @media (max-width: 414px) {
    .login-box {
      padding: 25px 20px;
      min-height: 20svh;      /* Take full height for tiny screens */
    }
  
    .login-box h2 {
      font-size: 20px;
      margin-bottom: 20px;
    }
  
    .input-wrapper input {
      font-size: 14px;
      padding: 10px 2.5em 10px 10px;
    }
  
    button {
      font-size: 14px;
      padding: 12px;
    }
  }