/* ========================================
   FRETE AUTÔNOMO - ADMIN LOGIN
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    background: #ffffff;
}

/* Left side - background image */
.login-image {
    width: 50%;
    height: 100vh;
    flex-shrink: 0;
    background: url('../images/capa-login.jpg') center/cover no-repeat;
    position: relative;
}
.login-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(46,125,50,0.25) 0%, rgba(46,125,50,0.1) 100%);
}

/* Right side - form */
.login-form-side {
    width: 50%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}
.login-form-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 20px 0;
}

/* Header */
.frete-header { text-align: center; margin-bottom: 32px; }
.frete-logo-img { max-width: 200px; height: auto; margin: 0 auto 16px; display: block; }
.frete-badge {
    display: inline-block; background: #2e7d32; color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    padding: 4px 16px; border-radius: 4px; margin-bottom: 16px;
}
.frete-title { font-size: 22px; font-weight: 600; color: #2e7d32; margin: 0 0 6px; }
.frete-subtitle { font-size: 14px; color: #666; margin: 0; }

/* Form */
.login-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: #333; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input {
    width: 100%; padding: 12px 14px;
    border: 1px solid #ddd; border-radius: 8px;
    background: #f9f9f9; font-size: 15px; color: #333;
    outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.form-group input:focus { border-color: #43a047; background: #fff; box-shadow: 0 0 0 3px rgba(67,160,71,0.12); }
.form-group input::placeholder { color: #aaa; }

/* Remember */
.remember-row { display: flex; align-items: center; }
.remember-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; cursor: pointer; }
.remember-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: #43a047; cursor: pointer; }

/* Button */
.btn-login {
    width: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #fff; border: none; border-radius: 8px;
    font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; font-family: inherit;
    transition: transform 0.15s, box-shadow 0.2s;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(67,160,71,0.3); }
.btn-login:active { transform: translateY(0); }

/* Error */
.alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #dc2626;
    padding: 12px 16px; border-radius: 8px; font-size: 14px;
    display: flex; align-items: center; gap: 8px;
}
.alert-error svg { flex-shrink: 0; }

/* Responsive */
@media (max-width: 768px) {
    body.login-page { flex-direction: column; height: auto; min-height: 100vh; overflow: auto; }
    .login-image { width: 100%; min-height: 260px; height: 260px; }
    .login-form-side { width: 100%; height: auto; padding: 30px 20px; overflow-y: visible; }
}
