/* ===========================
   Global Login Background
   =========================== */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #001f3f, #008080);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===========================
   Login Container
   =========================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ===========================
   Login Card
   =========================== */
.login-card {
    background: #ffffff;
    padding: 40px 30px;
    width: 380px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    text-align: center;
    animation: fadeIn 0.6s ease;
}

/* Logo */
.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

/* Headings */
.login-card h2 {
    margin: 0;
    font-size: 28px;
    color: #008080;
}

.subtitle {
    color: #666;
    margin-bottom: 25px;
}

/* ===========================
   Inputs
   =========================== */
input {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: .2s;
}

input:focus {
    border-color: #008080;
    box-shadow: 0 0 5px rgba(0, 76, 140, .2);
}

/* Password toggle icon */
.password-wrapper {
    width: 100%;
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 14px;
    cursor: pointer;
    font-size: 17px;
    color: #666;
}

/* ===========================
   Button
   =========================== */
button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background: #008080;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: .2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

button:hover {
    background: #0060b5;
}

/* Button loader */
.loader {
    border: 3px solid #ccc;
    border-top: 3px solid white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Error box */
.error-box {
    background: #ffcccc;
    color: #b30000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
    display: none;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer-text {
    margin-top: 20px;
    color: #888;
    font-size: 13px;
}
