/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Responsive Container */
.login-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Logo Design */
.logo-container {
    margin-bottom: 20px;
}

.logo-placeholder {
    width: 64px;
    height: 64px;
    background-color: #eef2f6;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    color: #4a90e2;
}

.logo-img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

/* Typography */
h2 {
    color: #333333;
    font-size: 24px;
    margin-bottom: 8px;
}

.subtitle {
    color: #666666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Error Label Control */
.error-label {
    display: none; /* Hidden by default */
    background-color: #ffebe9;
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.4;
}

    /* Class to dynamically trigger visibility */
    .error-label.visible {
        display: block;
    }

/* Form Styles */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #444444;
        margin-bottom: 6px;
    }

    .input-group input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #cccccc;
        border-radius: 8px;
        font-size: 15px;
        color: #333333;
        outline: none;
        transition: all 0.2s ease-in-out;
    }

        .input-group input:focus {
            border-color: #4a90e2;
            box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
        }

/* Button Styles */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #4a90e2;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 10px;
}

    .login-btn:hover {
        background-color: #357abd;
    }

    .login-btn:active {
        background-color: #2a6198;
    }

/* Media Query for Small Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 30px 20px;
        box-shadow: none; /* Keeps layout clean on tiny screens */
        background-color: transparent;
    }
}
