/* ========================================
   CARLO INTERNATIONAL - LOGIN SCREEN (split layout)
   ======================================== */
html.login-action-login, body.login {
    background: #fbfaf7;
    margin: 0;
}

body.login {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#login {
    width: auto;
    padding: 0;
    margin: 0;
}

/* ----- Split layout shell ----- */
.ci-login-split {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* ----- Left visual panel ----- */
.ci-login-visual {
    position: sticky;
    top: 88px;
    flex: 1 1 50%;
    height: calc(100vh - 88px);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    overflow: hidden;
}

.ci-login-visual__overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.ci-login-visual__brand,
.ci-login-visual__content,
.ci-login-visual__badges {
    position: relative;
    z-index: 1;
}

.ci-login-visual__brand {
    font-family: Georgia, 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
}

.ci-login-visual__brand small {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    opacity: 0.75;
    margin-top: 2px;
}

.ci-login-visual__content h2 {
    font-family: Georgia, 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.15;
}

.ci-login-visual__content p {
    max-width: 380px;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0;
}

.ci-login-visual__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.ci-login-visual__badge {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
}

.ci-login-visual__badge svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.9;
}

.ci-login-visual__badge strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.ci-login-visual__badge span {
    opacity: 0.65;
}

/* ----- Right form panel ----- */
.ci-login-panel {
    flex: 1 1 50%;
    min-height: calc(100vh - 88px);
    background: var(--ci-white, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    box-sizing: border-box;
    position: relative;
}

.ci-login-panel #login {
    width: 100%;
    max-width: 420px;
}

/* ----- Frame do formulário: cartão com o banner Carlo International no topo ----- */
.ci-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(6,21,50,0.12);
    overflow: hidden;
}

.ci-login-card__cover {
    height: 110px;
    background-color: #061532;
    background-size: cover;
    background-position: center;
}

.ci-login-card #login {
    max-width: none;
    padding: 32px 32px 36px;
}

.ci-login-panel__create {
    position: absolute;
    top: 40px;
    right: 48px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.ci-login-panel__create-alt a {
    border: none;
    padding: 0;
    color: #6b7280;
    text-decoration: underline;
}

.ci-login-panel__create-alt a:hover {
    color: #c9a84c;
}

.ci-login-panel__create span {
    color: #6b7280;
}

.ci-login-panel__create a {
    border: 1px solid #d8dce3;
    color: #1a2436;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ci-login-panel__create a:hover {
    background: #061532;
    border-color: #061532;
    color: #fff;
}

.ci-login-panel__title {
    text-align: left;
}

.ci-login-panel__title h1 {
    font-family: Georgia, 'Playfair Display', serif;
    color: #1a2436;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 8px;
    text-align: left;
}

.ci-login-panel__title p {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 28px;
    text-align: left;
}

#login > h1 { display: none; }

.login form {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Espaçamento explícito entre campos - sem isto, o valor por omissão do
   WordPress core (que varia consoante o elemento) pode criar espaços
   inconsistentes entre o campo da password e a linha "Manter sessão". */
.login form > p,
.login form > div {
    margin: 0 0 20px;
}

.login form > p:last-child,
.login form > div:last-child {
    margin-bottom: 0;
}

/* p.submit só tem o botão (que não é flutuante), mas fica com altura 0 em
   alguns motores de layout se não se forçar aqui - garante que reserva
   sempre o espaço do botão em vez de depender do fluxo por omissão. */
.login form p.submit {
    overflow: hidden;
}

.login label {
    color: #33415c;
    font-weight: 500;
    font-size: 13px;
}

.ci-login-field {
    position: relative;
}

.ci-login-field__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8993a4;
    display: flex;
    pointer-events: none;
}

.login .input,
.login input[type="text"],
.login input[type="password"] {
    background: #f7f8f9;
    border: 1px solid #dde1e8;
    color: #1a2436;
    border-radius: 6px;
    padding: 12px 14px 12px 42px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
}

.login .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    background: #ffffff;
    border-color: #c9a84c;
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
    outline: none;
}

.login .input::placeholder { color: #9aa5b8; }

.wp-pwd { position: relative; }
.wp-pwd .button.wp-hide-pw {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #8993a4;
}
.wp-pwd .button.wp-hide-pw:hover { color: #c9a84c; }

.login form .forgetmenot {
    display: flex;
    align-items: center;
    gap: 8px;
    float: none;
    margin: 8px 0 20px;
}

.login form .forgetmenot label {
    margin: 0;
}

/* .forgetmenot tem 3 filhos flex (checkbox, label, link "Esqueceu-se da
   senha?") - com justify-content:space-between os três ficam distribuídos
   ao longo da linha, o que empurra o label para longe da própria checkbox.
   Em vez disso, mantém checkbox+label juntos (gap acima) e só o link é
   empurrado para a direita. */
.login form .forgetmenot .wp-login-lost-password {
    margin-left: auto;
}

#nav {
    margin: 0;
    padding: 0;
}

#nav a {
    color: #c9a84c;
    font-size: 13px;
}

.login .button-primary {
    background: #c9a84c !important;
    border-color: #b8953a !important;
    color: #061532 !important;
    font-weight: 700;
    text-shadow: none !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    height: auto !important;
    line-height: 1.4 !important;
    width: 100%;
    font-size: 15px;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #b8953a !important;
    border-color: #b8953a !important;
}

/* ----- Spinner de "a processar" no submit do login ----- */
.ci-login-submit-wrap {
    position: relative;
}

.login .button-primary.ci-btn-loading {
    padding-right: 44px !important;
    cursor: progress;
    opacity: 0.9;
}

.ci-login-spinner {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid rgba(6,21,50,0.3);
    border-top-color: #061532;
    border-radius: 50%;
    animation: ci-login-spin 0.7s linear infinite;
}

@keyframes ci-login-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ci-login-spinner {
        animation: none;
    }
}

.login #backtoblog {
    text-align: center;
    margin-top: 24px;
}

.login #backtoblog a {
    color: #6b7280;
    font-size: 13px;
}

.login #backtoblog a:hover {
    color: #c9a84c;
}

.login .message,
.login #login_error {
    border-radius: 8px;
    border-left-width: 4px;
    background: #f7f8f9;
    box-shadow: 0 1px 3px rgba(6,21,50,0.08);
    margin-bottom: 20px;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .ci-login-visual { display: none; }
    .ci-login-panel { flex: 1 1 100%; padding: 32px 24px; }
    .ci-login-panel__create { top: 20px; right: 24px; }
    .ci-login-card { margin-top: 76px; }
}
