/* 
 * login.css
 *
 * Created on : 15 de abr. de 2026, 10:18:36
 *     Author : Marcos Couto Jr.
 *       Role : Developer
*/

/** 
 * :: Page Login :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 */

.login-wrapper{
    display: flex;
    width: 100%;
    min-height: 100vh;
}
/** left panel */
.left-panel{
    flex:1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 72px;
    overflow: hidden;
    min-height: 100vh;
}
/** left panel | Background Image */
.left-bg{
    position: absolute;
    inset: 0;
    background-image: url("../images/aposentadoria_1.jpg");
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 12s ease;
    transform: scale(1.06);
}
.left-bg.zoomed{
    transform: scale(1.0);
}
/** left panel | Gradient overlay */
.left-overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(14,25,50,0.82) 0%,
        rgba(99,173,59,0.75) 60%,
        rgba(99,173,59,0.35) 100%
    );
}
.left-content{
    position: relative;
    z-index: 2;
}
/** left panel | logo */
.left-logo{
    display: flex;
    align-items: center;
}
.left-logo img{
    height: 152px;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.5));
}
/** left panel | badge */
.admin-badge{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 52px;
    background: rgba(99,173,59,.7);
    border: 1px solid rgba(255,255,255,.4);
    color: var(--color-white);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    padding: 6px 14px;
    border-radius: 20px;
}
.admin-badge i{
    font-size: .8rem;
}
/** left panel | Headline */
.left-headline {
    margin-top: 20px;
    font-size: 2.8rem; 
    font-weight: 900; 
    color: var(--color-white);
    line-height: 1.2; 
    letter-spacing: -0.5px;
    max-width: 640px;
}
.left-headline span { 
    color: var(--color-blue); 
    font-size: 2.8rem;
}
/** left panel | Description */
.left-desc {
    margin-top: 20px;
    font-size: 0.92rem; 
    color: rgba(255,255,255,0.65);
    line-height: 1.8; 
    max-width: 400px;
}
/** left panel | Feature bullets */
.left-features {
    margin-top: 36px;
    display: flex; 
    flex-direction: column; 
    gap: 14px;
}
.feature-item {
    display: flex; 
    align-items: flex-start; 
    gap: 14px;
}
.feature-icon {
    width: 36px; 
    height: 36px; 
    border-radius: 9px; 
    flex-shrink: 0;
    background: rgba(30,46,80,0.48);
    border: 1px solid rgba(30,46,80,0.7);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--color-green); 
    font-size: 0.85rem;
}
.feature-text strong { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--color-white); 
    font-weight: 700; 
}
.feature-text span { 
    font-size: 0.78rem; 
    color: rgba(255,255,255,0.5); 
    line-height: 1.5; 
}
/** left panel | Bottom area */
.left-footer {
    position: relative; 
    z-index: 2;
}
.left-footer-inner {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(30,46,80,0.18);
}
.left-footer p { 
    font-size: 0.72rem; 
    color: rgba(30,46,80,0.6); 
}
.left-footer a  { 
    font-size: 0.72rem; 
    color: rgba(30,46,80,0.48); 
    transition: color 0.15s; 
}
.left-footer a:hover { 
    color: var(--color-blue); 
}

/** right panel */
.right-panel{
    width: 480px;
    flex-shrink: 0;
    background: var(--color-white);
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 52px 52px;
    position: relative;
    overflow-y: auto;
}
/** right panel | top decoration stripe */
.form-wrap { 
    width: 100%; 
    max-width: 360px; 
}
/** right panel | form header */
.form-header { 
    margin-bottom: 36px; 
}
.form-title {
    font-size: 1.75rem; 
    font-weight: 900; 
    color: var(--color-blue);
    letter-spacing: -0.3px;
}
.form-subtitle {
    font-size: 0.85rem; 
    color: var(--color-text-p); 
    margin-top: 6px; 
    line-height: 1.6;
}
/** right panel | Form group */
.form-group { 
    margin-bottom: 22px; 
    position: relative; 
}
.form-label {
    display: block; 
    font-size: 0.78rem; 
    font-weight: 700;
    color: #444; 
    text-transform: uppercase; 
    letter-spacing: 0.4px;
    margin-bottom: 7px;
    color: var(--color-blue);
}
.form-label i{
    margin-right: 5px;
}
.input-wrap { 
    position: relative; 
}
.input-icon {
    position: absolute; 
    left: 14px; 
    top: 50%; 
    transform: translateY(-50%);
    color: #bbb; 
    font-size: 0.9rem;
    transition: color 0.2s; 
    pointer-events: none;
}
.form-input {
    width: 100%; 
    padding: 12px 14px 12px 40px;
    border: 1.5px solid #e0e0e0; 
    border-radius: 10px;
    font-size: 0.9rem; 
    color: #333; 
    outline: none;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form-input:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(42,157,143,0.12);
    background: var(--color-white);
}
.form-input:focus + .input-icon,
.input-wrap:focus-within .input-icon { 
    color: var(--color-green);
}
.form-input.error { 
    border-color: #e74c3c; 
}
.form-input.error:focus { 
    box-shadow: 0 0 0 3px rgba(231,76,60,0.12); 
}
/** right panel | Password toggle */
.pwd-toggle {
    position: absolute; 
    right: 14px; 
    top: 50%; 
    transform: translateY(-50%);
    color: #bbb; 
    cursor: pointer; 
    font-size: 0.9rem;
    transition: color 0.2s; 
    background: none; 
    border: none; 
    padding: 0;
}
.pwd-toggle:hover { 
    color: var(--color-green); 
}
/** right panel | Error message */
.field-error {
    font-size: 0.74rem; 
    color: #e74c3c;
    margin-top: 5px; 
    display: none;
    align-items: center; 
    gap: 5px;
}
.field-error.visible { 
    display: flex; 
}
/** right panel | Remember / forgot */
.form-options {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 28px; 
    margin-top: -6px;
}
.remember-wrap {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer;
}
.remember-wrap input[type="checkbox"] { 
    display: none; 
}
.custom-checkbox {
    width: 18px; 
    height: 18px; 
    border-radius: 5px;
    border: 1.5px solid #ddd; 
    background: #fff;
    display: flex; 
    align-items: center; 
    justify-content: center;
    transition: background 0.15s, border-color 0.15s; 
    flex-shrink: 0;
}
.remember-wrap input:checked + .custom-checkbox {
    background: var(--color-green); 
    border-color: var(--color-green);
}
.custom-checkbox i { 
    font-size: 0.65rem; 
    color: var(--color-white); 
    display: none; 
}
.remember-wrap input:checked + .custom-checkbox i { 
    display: block; 
}
.remember-label { 
    font-size: 0.8rem; 
    color: #555; 
    user-select: none; 
}
.forgot-link { 
    font-size: 0.8rem; 
    color: var(--color-green); 
    font-weight: 600; 
    transition: opacity 0.15s; 
}
.forgot-link:hover { 
    opacity: 0.75; 
}
/** right panel | Submit button */
.btn-login {
    width: 100%; 
    padding: 13px;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 100%);
    color: var(--color-white); 
    border: none; 
    border-radius: 10px;
    font-size: 0.95rem; 
    font-weight: 700; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    letter-spacing: 0.3px;
    position: relative; 
    overflow: hidden;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,46,80,0.3);
}
.btn-login:active { 
    transform: translateY(0); 
}
.btn-login.loading { 
    pointer-events: none; 
}
.btn-login .btn-spinner { 
    display: none; 
}
.btn-login.loading .btn-text { 
    display: none; 
}
.btn-login.loading .btn-spinner { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
/** right panel | Ripple */
.btn-login .ripple {
    position: absolute; 
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    transform: scale(0); 
    animation: ripple 0.5s linear;
    pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}
/** right panel | Alert box */
.alert-box {
    display: none; 
    align-items: flex-start; 
    gap: 12px;
    padding: 13px 16px; 
    border-radius: 10px; 
    margin-bottom: 22px;
    font-size: 0.83rem; 
    line-height: 1.5;
}
.alert-box.error   { 
    background: #fef2f2; 
    border: 1px solid #fca5a5; 
    color: #b91c1c; 
}
.alert-box.success { 
    background: #f0fdf4;
    border: 1px solid #86efac; 
    color: #166534; 
}
.alert-box.visible { 
    display: flex; 
}
.alert-box i { 
    margin-top: 1px; 
    flex-shrink: 0; 
}
/** right panel | Divider */
.divider {
    display: flex; 
    align-items: center; 
    gap: 12px;
    margin: 28px 0; 
    color: #ccc; 
    font-size: 0.76rem;
}
.divider::before,
.divider::after {
    content: ''; 
    flex: 1;
    height: 1px; 
    background: #eee;
}
/** right panel | Access links */
.access-links {
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}
.access-link {
    display: flex; 
    align-items: center; 
    gap: 12px;
    padding: 11px 16px; 
    border-radius: 10px;
    border: 1.5px solid #e8e8e8; 
    background: #fafafa;
    font-size: 0.82rem; 
    color: #444; 
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.access-link:hover {
    border-color: var(--color-green); 
    background: #eef8f7;
    transform: translateX(3px);
}
.access-link i { 
    width: 20px; 
    text-align: center; 
    color: var(--color-green); 
    font-size: 0.95rem; 
}
.access-link span { 
    flex: 1; 
}
.access-link .arrow { 
    color: #ccc; 
    font-size: 0.75rem; 
    transition: color 0.15s; 
}
.access-link:hover .arrow { 
    color: var(--color-green); 
}

/** right panel | Back link */
.back-link {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 7px;
    margin-top: 32px; 
    font-size: 0.8rem; 
    color: #aaa;
    transition: color 0.15s;
}
.back-link:hover { 
    color: var(--color-green); 
}

/** right panel | Security note */
.security-note {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px;
    margin-top: 16px; 
    font-size: 0.72rem; 
    color: #bbb;
}
.security-note i { 
    font-size: 0.7rem; 
    color: var(--color-green); 
}