.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.login-card {
    display: flex;
    width: 820px;
    min-height: 520px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lado esquerdo - Branding */
.login-brand {
    width: 320px;
    background: linear-gradient(160deg, #1a2a3a 0%, #2c3e50 40%, #34495e 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.login-brand::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.brand-content {
    text-align: center;
    z-index: 1;
    margin-top: 40px;
}

.brand-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.login-brand h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.btn-back {
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    width: 100%;
    max-width: 200px;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

/* Lado direito - Formulário */
.login-form-area {
    flex: 1;
    background: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 5px 0;
}

.form-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0 0 30px 0;
}

/* Input groups com floating label */
.input-group {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 12px;
    padding: 0 15px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.input-group:focus-within {
    border-color: #2980B9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
}

.input-group > i:first-child {
    color: #aaa;
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: color 0.3s;
}

.input-group:focus-within > i:first-child {
    color: #2980B9;
}

.input-wrapper {
    flex: 1;
    position: relative;
    padding: 8px 0 8px 12px;
}

.input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1a1a2e;
    padding: 14px 0 0 0;
    font-family: inherit;
}

.input-wrapper label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
    margin: 0;
}

.input-wrapper input:focus ~ label,
.input-wrapper input:not(:placeholder-shown) ~ label {
    top: 10px;
    font-size: 11px;
    color: #2980B9;
    font-weight: 600;
}

/* Toggle senha */
.toggle-pwd {
    color: #bbb;
    cursor: pointer;
    padding: 10px 5px;
    font-size: 14px;
    transition: color 0.3s;
}

.toggle-pwd:hover {
    color: #2980B9;
}

/* Checkbox customizado */
.remember-row {
    margin-bottom: 24px;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    margin: 0;
}

.checkbox-custom input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.checkbox-custom input:checked ~ .checkmark {
    background: #2c3e50;
    border-color: #2c3e50;
}

.checkbox-custom input:checked ~ .checkmark::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

/* Botão login */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2c3e50, #2980B9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.35);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login img {
    height: 22px;
}

/* Erro */
.login-error {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
    color: #dc2626;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Autocomplete fix */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f5f7fa inset !important;
    -webkit-text-fill-color: #1a1a2e !important;
    transition: background-color 5000s ease-in-out 0s;
}

.input-group:focus-within input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
}

/* Responsivo */
@media screen and (max-width: 700px) {
    .login-card {
        flex-direction: column;
        width: 95%;
        max-width: 420px;
        min-height: auto;
    }

    .login-brand {
        width: 100%;
        padding: 30px 25px;
        min-height: auto;
    }

    .brand-content { margin-top: 0; }

    .brand-logo { max-width: 160px; margin-bottom: 15px; }

    .login-brand h2 { font-size: 18px; }

    .btn-back { max-width: 160px; padding: 8px 20px; margin-top: 15px; }

    .login-form-area { padding: 30px 25px; }

    .form-title { font-size: 22px; }
}
