/* LOGIN PANEL CSS */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
}

.main-container {
    display: flex;
    height: 100vh;
}

.login-sidebar {
    width: 40%;
    height: 100%;
    background-color: white;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.content-area {
    background-color: rgba(0, 0, 0, 0.4);
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-header {
    background-color: #3f51b6;
    color: white;
    padding: 3em 1em;
    text-align: center;
    position: relative;
}

.login-header .avatar {
    width: 5em;
    height: 5em;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1em;
    color: #3f51b5;
}

.login-body {
    padding: 3em;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mdl-textfield {
    width: 100%;
    margin-bottom: 1em;
}

.login-footer {
    padding: 1em 3em;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.login-footer a {
    color: #3f51b5;
    text-decoration: none;
}

.success-message {
    display: none;
    text-align: center;
    color: #4caf50;
    margin-top: 1em;
    font-weight: 500;
}

.error-message {
    display: none;
    text-align: center;
    color: #f44336;
    margin-top: 1em;
    font-weight: 500;
}

.loader {
    display: none;
    margin: 1em auto;
    text-align: center;
}

.placeholder-text {
    color: white;
    font-size: 2em;
    text-align: center;
}

.mdl-button {
    font-weight: bold;
    font-size: 1em;
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .login-sidebar {
        width: 100%;
        height: auto;
        min-height: 100vh;
    }

    .content-area {
        display: none;
    }
}