/* ── Reset e base ── */
* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    background: #f3f2f1;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Layout dividido ── */
.login-left {
    flex: 0 0 440px;
    max-width: 440px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 44px 44px 32px;
    position: relative;
    z-index: 1;
}

.login-right {
    flex: 1;
    background: #0078d4;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Painel direito — ilustração ── */
.login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            radial-gradient(ellipse at 30% 70%, rgba(255,255,255,.08) 0%, transparent 60%),
            radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.06) 0%, transparent 50%);
}

.right-illustration {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 360px;
}

.right-illustration .illus-icon {
    font-size: 7rem;
    opacity: .18;
    display: block;
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

.right-illustration h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: .75rem;
    opacity: .92;
}

.right-illustration p {
    font-size: .95rem;
    opacity: .65;
    line-height: 1.6;
    margin: 0;
}

/* ── Logo e marca ── */
.login-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.login-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: #0078d4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
}

.login-logo .logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #323130;
    letter-spacing: -.2px;
}

/* ── Títulos ── */
.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #323130;
    margin: 0 0 8px;
}

.login-subtitle {
    font-size: .875rem;
    color: #605e5c;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ── Campos ── */
.ms-field {
    margin-bottom: 20px;
}

.ms-field label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: #323130;
    margin-bottom: 4px;
}

.ms-field .field-wrapper {
    position: relative;
}

.ms-field input {
    width: 100%;
    height: 36px;
    padding: 0 36px 0 8px;
    border: 1px solid #8a8886;
    border-radius: 2px;
    font-size: .9375rem;
    color: #323130;
    background: #fff;
    outline: none;
    transition: border-color .1s, box-shadow .1s;
    font-family: inherit;
}

.ms-field input:hover {
    border-color: #323130;
}

.ms-field input:focus {
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.ms-field input::placeholder {
    color: #a19f9d;
    font-size: .875rem;
}

/* Ícone toggle senha dentro do input */
.ms-field .toggle-senha {
    position: absolute;
    right: 0;
    top: 0;
    height: 36px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #605e5c;
    font-size: .95rem;
    padding: 0;
    transition: color .15s;
}

.ms-field .toggle-senha:hover {
    color: #0078d4;
}

/* ── Alerta de erro ── */
.ms-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fde7e9;
    border-left: 3px solid #d13438;
    border-radius: 2px;
    padding: 10px 12px;
    margin-bottom: 20px;
    font-size: .8125rem;
    color: #323130;
    line-height: 1.4;
}

.ms-error i {
    color: #d13438;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Botão principal ── */
.btn-ms-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 20px;
    background: #0078d4;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-size: .875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .1s;
    white-space: nowrap;
}

.btn-ms-primary:hover   { background: #106ebe; }
.btn-ms-primary:active  { background: #005a9e; }
.btn-ms-primary:disabled {
    background: #c8c6c4;
    cursor: not-allowed;
}

/* ── Rodapé do painel esquerdo ── */
.login-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #edebe9;
    font-size: .75rem;
    color: #a19f9d;
}

.login-footer a {
    color: #0078d4;
    text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

/* ── Responsivo ── */
@media (max-width: 768px) {
    body { flex-direction: column; }

    .login-left {
        flex: none;
        max-width: 100%;
        width: 100%;
        padding: 32px 24px 28px;
        min-height: 100vh;
    }

    .login-right { display: none; }
}

.ms-success {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: #dff6dd;
    border-left: 3px solid #107c10;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
    color: #323130;
}

.ms-success i {
    color: #107c10;
    flex-shrink: 0;
    margin-top: 1px;
}