﻿body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: black;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form {
    border: 1px solid #1ab188;
    border-radius: 10px;
    padding: 1rem;
    background: rgba(0,0,0,0.6);
    width: 100%;
    max-width: 400px; /* Limit for desktop */
    box-sizing: border-box;
}

.login-text {
    color: #dff1f5;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

.login-username, .login-password {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    color: #dff1f5;
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    box-sizing: border-box;
}

.login-username:focus, .login-password:focus {
    background: #dff1f5;
    color: black;
    outline: none;
    transition: 250ms ease-in;
}

.login-submit {
    border: 1px solid #1ab188;
    background: transparent;
    color: white;
    display: block;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: 250ms ease-in;
}

.login-submit:hover {
    background: #1ab188;
    color: white;
}

.underlay-photo {
    background-image: url('/Images/porwal-s-kitchen.png');
    background-size: cover; /* Adjusts automatically */
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(50%) blur(1px);
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.underlay-black {
    background: rgba(0,0,0,0.7);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 📱 Mobile adjustments */
@media (max-width: 768px) {
    .login-form {
        max-width: 90%; /* Shrinks on tablet/mobile */
        padding: 1.2rem;
    }

    .login-text {
        font-size: 1.5rem;
    }

    .login-username, .login-password {
        font-size: 0.95rem;
    }

    .login-submit {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .login-form {
        max-width: 95%; /* Even smaller for phones */
    }

    .login-text {
        font-size: 1.3rem;
    }
}
