body {
    background: #f0f4f8;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    /* Remove flexbox centering on body */
    /* display: flex; */
    /* justify-content: center; */
    /* align-items: center; */
    /* height: 100vh; */
}
.auth-container {
    background: #fff;
    padding: 1.8rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 360px;
    position: fixed;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -40%);
    animation: fadeInUp 0.35s ease forwards;
    z-index: 1000;
    overflow: hidden;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}


h2 {
    text-align: center;
    margin-bottom: 1.8rem;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

form input {
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1.1rem;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    background-color: #fafafa;
    box-shadow: inset 0 0 0 transparent;
    cursor: text;
    font-size: 16px; /* Prevent zoom on iOS */
}

form input:hover {
    border-color: #5a9df9;
    box-shadow: 0 0 8px rgba(90, 157, 249, 0.25);
    transform: scale(1.03);
}

form input:focus {
    border-color: #1976d2;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(25, 118, 210, 0.4);
    outline: none;
    transform: scale(1.06);
}

button {
    width: 100%;
    padding: 0.8rem;
    background: #007BFF;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.35s ease, transform 0.25s ease, box-shadow 0.35s ease;
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.25);
}

button:hover {
    background: #0056b3;
    box-shadow: 0 10px 20px rgba(0, 86, 179, 0.5);
    transform: scale(1.05) translateY(-3px);
}

button:active {
    transform: scale(0.98);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.3);
}

.message {
    margin-top: 1rem;
    color: #d32f2f;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.link {
    margin-top: 1.3rem;
    text-align: center;
    font-size: 0.95rem;
}

.link a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.link a:hover {
    text-decoration: underline;
    color: #0056b3;
}


/* SweetAlert container override remains as is */
.swal2-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;  /* Align popup to top */
    padding-top: 5rem !important;         /* some spacing from top */
    overflow: hidden !important;
    z-index: 99999 !important;
}


/* Reduce SweetAlert modal size */
.swal2-popup {
  width: 500px !important;
  padding: 1.5rem !important;
  font-size: 0.9rem !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Change SweetAlert OK button color */
.swal2-confirm {
    background-color: #007BFF !important;  /* Green background */
    color: white !important;               /* White text */
    border: none !important;
    box-shadow: 0 4px 10px rgba(40, 116, 167, 0.4) !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease;
  }
  
  .swal2-confirm:hover {
    background-color: #007BFF !important;  /* Darker green on hover */
  }
  