/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #001F3F, #004080);
    color: #FFFFFF;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    box-sizing: border-box;
}

/* Form Container */
form {
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 85%;
    max-width: 300px;
    transition: all 0.3s ease-in-out;
}

/* Input Fields */
input[type="text"], input[type="password"] {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Focus Effect */
input[type="text"]:focus, input[type="password"]:focus {
    border-color: #004080;
    box-shadow: 0 0 8px rgba(0, 31, 63, 0.3);
}

/* Button Styling */
button {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: #001F3F;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
button:hover {
    background: #004080;
    transform: scale(1.05);
}

.g-recaptcha {
    transform-origin: center; /* Keep it centered */
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

/* 🔹 Responsive Styles for Mobile (1024x2460) */
@media screen and (max-width: 1024px) {
    body {
        padding: 20px;
        height: auto;
    }

    form {
        max-width: 80%;
        padding: 1.5rem;
    }

    input[type="text"], input[type="password"] {
        font-size: 1.1rem;
        padding: 14px;
    }

    button {
        font-size: 1.1rem;
        padding: 14px;
    }
}

/* 🔹 Landscape Mode Adjustments */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    body {
        justify-content: flex-start;
        height: auto;
        padding-top: 5%;
    }

    form {
        max-width: 60%;
        padding: 1rem;
    }

    button {
        font-size: 1rem;
    }
}

/* 🔹 Small Screens (Phones) */
@media screen and (max-width: 720px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100vh; /* Ensures full height */
    }

    form {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        max-width: 90%;
        padding: 1rem;
        gap: 1rem;
    }

    input[type="text"], input[type="password"] {
        font-size: 1rem;
        padding: 10px;
    }

    button {
        font-size: 1rem;
        padding: 12px;
    }
    
    .g-recaptcha { 
        transform-origin: center;
        transform: scale(0.89); /* Even smaller on small screens */
        margin-left: -16px;
        position: relative;
    }

}

