body {
    background: #f5f6fa;
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.login-container {
    background: #fff;
    max-width: 350px;
    margin: 48px auto 0 auto;
    border-radius: 18px;
    position: relative;
    padding: 32px 32px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background:
      repeating-linear-gradient(120deg, #1E90FF 0 10px, #4169E1 10px 20px, #1E90FF 20px 30px),
      linear-gradient(120deg, #1E90FF, #4169E1, #1E90FF);
    background-size: 60px 60px, 200% 200%;
    background-position: var(--move, 0px) 0, 0 0;
    animation: borderWaterMove 2.5s linear infinite, borderMove 4s ease-in-out infinite;
    -webkit-mask: 
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: 
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
    pointer-events: none;
}

@keyframes borderWaterMove {
    0% { --move: 0px; }
    100% { --move: 60px; }
}

@keyframes borderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo {
    max-width: 140px;
    margin-bottom: 18px;
    display: block;
}

h2 {
    margin: 0 0 18px 0;
    font-size: 1.5rem;
    color: #1E90FF;
    font-weight: 700;
    text-align: center;
}

.form-group {
    width: 100%;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #222;
}

.form-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #1E90FF;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
}

.form-group input:focus {
    border: 1.5px solid #4169E1;
    box-shadow: 0 0 4px #1e90ff33;
}

button[type="submit"] {
    width: 100%;
    background: #1E90FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s, transform 0.2s;
}
button[type="submit"]:hover {
    background: #4169E1;
    transform: translateY(-2px) scale(1.03);
}

.error {
    background: #ffdddd;
    color: #c00;
    border: 1px solid #ff8888;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
}

.login-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .login-box {
    background: white;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 0 10px #000;
    width: 300px;
    text-align: center;
  }

  