/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Background setup */
    background-image: url('../img/Back.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Modern Glass Container */
.login-container {
    width: 100%;
    max-width: 400px; /* Mobile වලට ගානට සෙට් වෙනවා */
    background: rgba(255, 255, 255, 0.15); /* Glass Effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    margin: 20px;
}

.logo-area img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    margin-top: -80px; /* Box එකෙන් එළියට පේන්න */
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

h2 {
    color: #fff;
    margin: 20px 0 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Form Inputs - Touch Friendly */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 15px; /* Touch කරන්න ලේසි වෙන්න ලොකු padding */
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    background: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(39, 174, 96, 0.5);
}

/* Modern Button */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #27ae60;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    margin-top: 10px;
}

.btn-login:active {
    transform: scale(0.98);
}

/* Mobile Responsive Tweaks */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 20px;
    }
    .logo-area img {
        width: 100px;
        height: 100px;
        margin-top: -60px;
    }
}