/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f8f9fc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; /* ✅ Modern unit for iOS Safari/PWA */
    padding: 24px;
}



/* Login Box */
.login-wrapper {
    width: 100%;
    max-width: 460px;
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: scale(1.05); /* ✅ Slight zoom effect on PWA */
}


/* Branding */
.branding {
    text-align: center;
    margin-bottom: 20px;
}

.branding img {
    height: 50px;
    max-width: 100%;
}

.branding h2 {
    font-size: 20px;
    margin-top: 10px;
    color: #ff0000;
}

/* Form Styling */
form label {
    font-weight: bold;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    font-size: 15px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
}

/* Button */
button {
    width: 100%;
    padding: 12px;
    background-color: #FFCC33;
    color: #000;
    font-weight: bold;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

button {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #f6c900;
    transform: scale(1.05);
}


/* Error Message */
.error-msg {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* ✅ Mobile Responsive Enhancements */
@media (max-width: 768px) {
    body {
        padding: 16px;
        align-items: center; /* ✅ Keep centered */
    }}

    .login-wrapper {
        padding: 28px 20px;
    }

    .branding h2 {
        font-size: 20px;
        margin-top: 8px;
    }

    form input {
        font-size: 15px;
    }

    button {
        font-size: 15px;
        padding: 12px;
    }

    .toggle-password {
        cursor: pointer;
        font-size: 18px;
        color: #444;
        transition: transform 0.3s ease, color 0.3s ease;
        margin-left: 10px;
    }

    .toggle-password:hover {
        transform: scale(1.2);
    color: #f6c900;
}

.toggle-password:active {
    transform: scale(1);
}




/* ================Footer section ============== */
.site-footer {
    background-color: #fdfdfd;
    color: #444;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-align: center;
    font-size: 13px;
    padding: 14px 10px;
    border-top: 1px solid #e4e4e4;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.03);
}

.site-footer p {
    margin: 2px 0;
    line-height: 1.4;
}

.site-footer strong {
    color: #111;
    font-weight: 600;
}

.site-footer .meta {
    color: #777;
}

.site-footer .meta span {
    color: #333;
    font-weight: 500;
}

/* ================Footer section ended ============== */

.powered-by {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}