/* Estilo base modernizado */
:root {
    --primary-blue: #01063a;
    --secondary-blue: #2b315b;
    --accent-green: #0abd1f;
    --light-green: #00ff00;
    --input-bg: #5a5569;
    --text-light: #fefefe;
    --text-muted: #f0ffff94;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.main-login {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Lado Esquerdo: Branco */
.left-login {
    width: 50%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.left-login-logo {
    max-width: 50%;
    height: auto;
}

/* Lado Direito: Azul */
.right-login {
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #020a5e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-login {
    width: 70%;
    max-width: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2.5rem;
    background: rgba(43, 49, 91, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-title {
    color: var(--text-light);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 2rem;
    letter-spacing: 1px;
}

.textfield {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin: 1rem 0;
}

.textfield > label {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.input-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    font-size: 1rem;
}

.input-container .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.input-container .toggle-password:hover {
    color: var(--text-light);
    transform: scale(1.1);
}

.textfield > .input-container > input {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 15px 15px 15px 40px;
    background: var(--input-bg);
    color: white;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: var(--transition);
}

.textfield > .input-container > input:focus {
    box-shadow: 0 0 0 2px var(--accent-green);
}

.textfield > input::placeholder {
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    margin: 2rem 0 1rem;
    border: none;
    border-radius: 10px;
    outline: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-light);
    background: var(--accent-green);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(10, 189, 31, 0.3);
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--light-green);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    transform: translateY(-3px);
}

.btn-login:active {
    transform: translateY(0);
}

/* Responsividade */
@media only screen and (max-width: 950px) {
    .card-login {
        width: 85%;
        padding: 1.5rem;
    }
}

@media only screen and (max-width: 768px) {
    .main-login {
        flex-direction: column;
    }

    .left-login, .right-login {
        width: 100%;
        height: auto;
        padding: 2rem 0;
    }

    .left-login-logo {
        width: 40vw;
        max-width: 200px;
    }

    .card-login {
        max-width: 90%;
    }
}