:root {
    /* Cores da marca ControlWEB */
    --cw-primary: #16b1e3;        /* ciano do "Control" */
    --cw-primary-dark: #0e92be;
    --cw-primary-light: #4cc6ee;
    --cw-accent: #f7a300;         /* laranja do "WEB" */
    --cw-accent-dark: #e08f00;
    --cw-bg-input: #eef7fb;
    --cw-text: #243240;
    --cw-text-muted: #8a98a5;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body#dv-login {
    font-family: 'Roboto', 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #e6f5fb 0%, #f4fbfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: var(--cw-text);
}

/* Card container — split layout */
.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(14, 146, 190, 0.35);
}

/* ---------- Left side: form ---------- */
.login-side {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
}

.form-signin {
    width: 100%;
    max-width: 320px;
    margin: 0;
    text-align: left;
}

.form-signin .brand-logo {
    display: block;
    max-width: 180px;
    margin: 0 auto 28px;
}

.login-title {
    text-align: center;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 28px;
    margin: 0 0 6px;
    color: var(--cw-text);
}

.login-subtitle {
    text-align: center;
    color: var(--cw-text-muted);
    font-size: 14px;
    margin: 0 0 28px;
}

/* Input with icon */
.input-group-cw {
    position: relative;
    margin-bottom: 16px;
}

.input-group-cw .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cw-primary);
    font-size: 15px;
    pointer-events: none;
}

.form-signin .form-control {
    height: 50px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--cw-bg-input);
    padding: 10px 16px 10px 44px;
    font-size: 14px;
    width: 100%;
    color: var(--cw-text);
    transition: border-color .2s, box-shadow .2s;
}

.form-signin .form-control::placeholder {
    color: var(--cw-text-muted);
}

.form-signin .form-control:focus {
    outline: none;
    border-color: var(--cw-primary);
    box-shadow: 0 0 0 4px rgba(22, 177, 227, 0.15);
    background: #fff;
}

/* Button */
.btn-login {
    display: block;
    width: 70%;
    margin: 24px auto 0;
    height: 48px;
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .5px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--cw-accent), var(--cw-accent-dark));
    box-shadow: 0 12px 22px -8px rgba(247, 163, 0, 0.65);
    transition: transform .15s, box-shadow .2s, opacity .2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px -8px rgba(247, 163, 0, 0.8);
}

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

#dv-retorno-login {
    border-radius: 12px;
    font-size: 13px;
}

/* ---------- Right side: illustration ---------- */
.login-aside {
    flex: 1 1 50%;
    position: relative;
    background: linear-gradient(140deg, #1aa8d8 0%, #0e6f9e 55%, #084a6e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 40px;
    color: #fff;
    overflow: hidden;
}

/* Decorative blobs */
.login-aside::before,
.login-aside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.login-aside::before {
    width: 320px;
    height: 320px;
    top: -120px;
    right: -100px;
}

.login-aside::after {
    width: 260px;
    height: 260px;
    bottom: -110px;
    left: -90px;
}

.aside-content {
    position: relative;
    z-index: 1;
}

.aside-content img {
    max-width: 240px;
    margin-bottom: 28px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.aside-content h2 {
    font-weight: 800;
    font-size: 26px;
    margin: 0 0 12px;
}

.aside-content p {
    font-size: 15px;
    line-height: 1.6;
    opacity: .9;
    margin: 0;
    max-width: 320px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
    }

    .login-aside {
        order: -1;
        padding: 36px 30px;
    }

    .aside-content img {
        max-width: 160px;
        margin-bottom: 16px;
    }

    .aside-content h2 {
        font-size: 22px;
    }

    .login-side {
        padding: 36px 30px 44px;
    }
}
