.login-page {
    background: #d2d6de url('../img/login_fundo_admin.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 36px 28px;
}
.admin-login-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    background: #e8ebf0;
    border: 2px solid #367fa9;
    border-radius: 28px;
    -webkit-box-shadow: 0 8px 28px rgba(54, 127, 169, 0.18);
    box-shadow: 0 8px 28px rgba(54, 127, 169, 0.18);
    overflow: hidden;
}
.admin-login-grid {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    min-height: 500px;
}
.admin-login-left {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 42%;
    flex: 0 0 42%;
    max-width: 42%;
    padding: 20px 24px 96px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
}
.admin-login-logo { text-align: center; margin-bottom: 18px; }
.admin-login-logo img { width: 100%; max-width: 320px; height: auto; }
.admin-login-left .login-box-body { border-radius: 6px; border: 1px solid #c5d4e0; }
.admin-login-right {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 33%;
    flex: 1 1 33%;
    max-width: 33%;
    padding: 20px 20px 14px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    border-left: 1px solid #b7c9d8;
    background: #f4f6f9;
    position: relative;
}
.login-whatsapp-btn {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 20;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: #25D366;
    color: #fff !important;
    padding: 9px 16px 9px 12px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    line-height: 1.2;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.45), 0 14px 36px rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 8px 20px rgba(0, 0, 0, 0.45), 0 14px 36px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    text-transform: uppercase;
}
.login-whatsapp-btn .fa { font-size: 18px; margin-right: 8px; }
.login-whatsapp-btn:hover,
.login-whatsapp-btn:focus {
    background: #1ebe57;
    color: #fff !important;
    text-decoration: none !important;
}
.admin-carousel {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #367fa9;
    background: #fff;
}
.admin-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .45s ease;
    transition: opacity .45s ease;
}
.admin-carousel-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.admin-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-carousel-slide > a { display: block; width: 100%; height: 100%; cursor: pointer; }
.admin-carousel-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    padding: 0 4px;
}
.admin-carousel-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #367fa9;
    background: #fff;
    color: #3c8dbc;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.admin-carousel-btn:hover { background: #3c8dbc; color: #fff; }
.admin-carousel-dots {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #367fa9;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.admin-carousel-dot.active { background: #3c8dbc; border-color: #3c8dbc; }
.admin-carousel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #777;
    font-size: 13px;
}
.login-senha-wrap { position: relative; }
.login-senha-wrap .form-control { padding-right: 40px; }
.login-senha-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    z-index: 3;
    line-height: 34px;
    padding: 0;
}
.login-senha-toggle:hover { color: #3c8dbc; }
.login-submit { margin-top: 15px; text-align: center; }
.login-submit .btn { display: inline-block; width: auto; min-width: 86px; }
.login-forgot { margin-top: 12px; margin-bottom: 8px; text-align: center; position: relative; z-index: 3; }
.login-sociais {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    text-align: center;
    z-index: 2;
}
.login-sociais a { display: inline-block; color: #3c8dbc; font-size: 22px; margin: 0 12px; text-decoration: none; }
.login-sociais a:hover { color: #23527c; }
.login-erro {
    margin-bottom: 12px;
    padding: 8px 10px;
    background: #f9eeee;
    border: 1px solid #e0b8b8;
    color: #8a3333;
}
.admin-login-soia {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
    padding: 18px 16px;
    background: #0a2a66;
    color: #dbe7f5;
    border-left: 1px dashed #7eb0d8;
}
.soia-login-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.soia-login-mark {
    display: grid; place-items: center; width: 36px; height: 36px;
    border-radius: 8px; background: #fff; color: #0a2a66; font-weight: 900;
}
.soia-login-head b { display: block; }
.soia-login-head small { color: #9bb6cc; font-size: 11px; }
.admin-login-soia p { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: #c5d6e6; }
.soia-login-box {
    min-height: 160px; border: 1px dashed #6a93b3; border-radius: 8px;
    display: grid; place-items: center; color: #8fb0c9; font-size: 11px;
    letter-spacing: .08em; text-transform: uppercase;
}
@media (min-width: 901px) {
    .admin-login-grid.sem-soia .admin-login-right { -ms-flex: 1 1 58%; flex: 1 1 58%; max-width: 58%; }
    /* As imagens do carrossel são 4:5; o quadro segue a mesma proporção para não cortar. */
    .admin-login-grid.sem-soia .admin-carousel { -ms-flex: 0 0 auto; flex: 0 0 auto; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; min-height: 0; margin: 0 auto; }
}
@media (max-width: 900px) {
    .admin-login-grid { flex-direction: column; min-height: 0; }
    .admin-login-left, .admin-login-right, .admin-login-soia { flex: 1 1 auto; max-width: 100%; }
    .admin-login-right { border-left: 0; border-top: 1px solid #b7c9d8; }
    .admin-login-soia { border-left: 0; border-top: 1px dashed #7eb0d8; }
    .login-whatsapp-btn { top: 22px; right: 22px; font-size: 10px; padding: 7px 12px 7px 9px; }
    .admin-carousel { min-height: 320px; height: 340px; }
}
@media (max-width: 480px) {
    .admin-login-shell { border-radius: 18px; }
    .admin-login-left { padding: 18px 14px 80px; }
    .admin-login-right { padding: 14px; }
    .admin-login-logo img { max-width: 260px; }
    .admin-carousel { height: 280px; min-height: 280px; }
}
