@media screen and (max-width: 480px) {
    .login-wrapper {
        padding: 0 5%;
    }

    .login-glass {
        padding: 25px 18px;
    }
}

/* Prevent Text Selection */
body, html {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    height: 100%;
    overflow: hidden;
}

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

/* Body Background */
body {
    background: url('https://tractox.com/assets/loginback.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

/* Main Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* Glass Morphism Box */
.login-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 35px 30px;
    color: #fff;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Form Inputs */
.login-form {
    margin-top: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
}

.login-form input::placeholder {
    color: #ccc;
}

/* Submit Button */
.login-form button {
    width: 100%;
    padding: 12px;
    background: #00b894;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.login-form button:hover {
    background: #019670;
}

/* Error Message Box */
.login-error {
    background: rgba(231, 76, 60, 0.5); /* red with 50% opacity */
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}




@media (max-width: 768px) {
    .login-wrapper {
        max-width: 90vw; /* Wider on tablet */
        transform: scale(1.1); /* Slight zoom */
    }

    .login-glass {
        padding: 35px 28px;
    }

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-form button {
        font-size: 18px;
        padding: 16px;
    }

    .logo-container img {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        max-width: 95vw; /* Full width on mobile */
        transform: scale(1.2); /* Bigger zoom */
    }

    .login-form input[type="text"],
    .login-form input[type="password"],
    .login-form button {
        font-size: 20px;
        padding: 18px;
    }

    .login-error {
        font-size: 18px;
        padding: 14px;
    }

    .logo-container img {
        max-height: 200px;
    }
}
