/* ============================================================
   GSF CAPITAL — PORTAL DO CLIENTE
   ============================================================ */

:root {
    --portal-primary: #2B475C;
    --portal-gold: #D4A843;
    --portal-bg: #f0f4f8;
}

/* ============================================================ LOGIN */
.portal-login {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #0f1e2d 0%, #1D3347 40%, #2B475C 80%);
    position: relative; overflow: hidden;
}
.portal-login-bg { position: absolute; inset: 0; pointer-events: none; }
.pl-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(212,168,67,0.06); }
.pl-circle.c1 { width: 600px; height: 600px; top: -20%; right: -15%; }
.pl-circle.c2 { width: 400px; height: 400px; bottom: -15%; left: -10%; border-color: rgba(255,255,255,0.04); }

.portal-login-box {
    background: #fff; border-radius: 24px; padding: 48px 44px; width: 100%; max-width: 440px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.4); text-align: center; position: relative; z-index: 1;
}
.portal-logo { height: 80px; width: auto; object-fit: contain; margin-bottom: 16px; }
.pl-divider { width: 50px; height: 3px; background: linear-gradient(90deg, var(--portal-gold), #B8902A); border-radius: 3px; margin: 0 auto 20px; }
.portal-login-box h2 { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; color: #1A2B38; margin-bottom: 6px; }
.portal-login-box p { color: #8A9BAD; font-size: 13px; margin-bottom: 28px; line-height: 1.6; }

.pl-field {
    display: flex; align-items: center; border: 2px solid #E8EEF4; border-radius: 10px;
    margin-bottom: 14px; background: #F4F7FA; transition: all 0.25s;
}
.pl-field:focus-within { border-color: var(--portal-primary); background: #fff; box-shadow: 0 0 0 4px rgba(43,71,92,0.06); }
.pl-field i { padding: 14px 16px; color: #8A9BAD; font-size: 15px; }
.pl-field input { flex: 1; border: none; padding: 14px 16px 14px 0; font-size: 14px; color: #1A2B38; outline: none; background: transparent; font-family: 'Roboto', sans-serif; }

.pl-error { background: rgba(229,62,62,0.08); color: #E53E3E; border: 1px solid rgba(229,62,62,0.2); border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; text-align: left; }

.pl-btn {
    width: 100%; padding: 15px; background: linear-gradient(135deg, var(--portal-primary), #1D3347); color: #fff;
    border: none; border-radius: 10px; font-family: 'Montserrat', sans-serif;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(43,71,92,0.3);
}
.pl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(43,71,92,0.4); }

.pl-links { display: flex; justify-content: center; gap: 24px; margin-top: 20px; }
.pl-links a { color: #8A9BAD; font-size: 12px; display: flex; align-items: center; gap: 5px; transition: color 0.25s; }
.pl-links a:hover { color: var(--portal-primary); }

.pl-secure { margin-top: 20px; padding-top: 16px; border-top: 1px solid #E8EEF4; color: #8A9BAD; font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pl-secure i { color: #2E9E6B; }

/* Abas Login / Registro */
.pl-tabs { display: flex; gap: 4px; margin-bottom: 24px; background: #f0f4f8; border-radius: 10px; padding: 4px; }
.pl-tab-btn {
    flex: 1; padding: 10px; border: none; border-radius: 8px; font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 600; color: #8A9BAD; background: transparent; cursor: pointer; transition: all 0.25s;
}
.pl-tab-btn.active { background: var(--portal-primary); color: #fff; box-shadow: 0 2px 8px rgba(43,71,92,0.2); }
.pl-tab-btn:hover:not(.active) { color: var(--portal-primary); }
.pl-form-tab { display: none; }
.pl-form-tab.active { display: block; }

/* Requisitos de senha */
.pl-senha-requisitos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-bottom: 14px; padding: 10px 14px; background: #f8fafc; border-radius: 8px; }
.pl-senha-requisitos .req { font-size: 11px; color: #b0bfc9; display: flex; align-items: center; gap: 6px; transition: color 0.25s; }
.pl-senha-requisitos .req i { font-size: 8px; }
.pl-senha-requisitos .req.ok { color: #2E9E6B; }
.pl-senha-requisitos .req.ok i { color: #2E9E6B; }

/* Esqueci minha senha */
.pl-forgot { display: block; text-align: center; margin-top: 14px; font-size: 12px; color: #8A9BAD; transition: color 0.25s; }
.pl-forgot:hover { color: #2B475C; }
.pl-forgot i { margin-right: 4px; }

/* Olhinho mostrar senha */
.pl-eye {
    background: none; border: none; color: #b0bfc9; cursor: pointer;
    padding: 14px 14px 14px 8px; font-size: 15px; transition: color 0.25s;
}
.pl-eye:hover { color: #2B475C; }
.pl-admin-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 11px; color: rgba(138,155,173,0.5); transition: color 0.25s; }
.pl-admin-link:hover { color: var(--portal-primary); }

/* ============================================================ PORTAL APP */
.portal-app { background: var(--portal-bg); min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.portal-header {
    background: linear-gradient(135deg, #0f1e2d, #1D3347); padding: 0 32px; height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15); position: sticky; top: 0; z-index: 50;
}
.ph-left { display: flex; align-items: center; gap: 16px; }
.ph-logo { height: 42px; width: auto; }
.ph-sep { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }
.ph-label { color: var(--portal-gold); font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; }
.ph-right { display: flex; align-items: center; gap: 16px; }
.ph-user { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 500; }
.ph-user i { font-size: 1.2rem; color: var(--portal-gold); }
.ph-logout { background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.6); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: all 0.25s; }
.ph-logout:hover { background: rgba(229,62,62,0.2); color: #fc8181; }
.ph-admin-btn { width: 38px; height: 38px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 14px; transition: all 0.25s; text-decoration: none; }
.ph-admin-btn:hover { background: rgba(212,168,67,0.15); color: var(--portal-gold); }

/* Main */
.portal-main { flex: 1; padding: 32px; }
.portal-container { max-width: 1100px; margin: 0 auto; }

/* Boas-vindas */
.portal-welcome {
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, var(--portal-primary), #3D6480); border-radius: 18px;
    padding: 32px 36px; margin-bottom: 28px; color: #fff;
}
.pw-text h1 { font-family: 'Montserrat', sans-serif; font-size: 1.5rem; margin-bottom: 6px; }
.pw-text h1 span { color: var(--portal-gold); }
.pw-text p { color: rgba(255,255,255,0.7); font-size: 14px; }
.pw-status-card {
    display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 16px 24px;
    transition: border-color 0.3s;
}
.pw-status-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--portal-gold); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; transition: background 0.3s; }
.pw-status-info small { color: rgba(255,255,255,0.6); font-size: 11px; display: block; }
.pw-status-info strong { font-family: 'Montserrat', sans-serif; font-size: 1rem; }

/* Cards */
.portal-card {
    background: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(43,71,92,0.06); border: 1px solid rgba(43,71,92,0.04);
}
.pc-header { margin-bottom: 20px; }
.pc-header h3 { font-family: 'Montserrat', sans-serif; font-size: 1rem; font-weight: 700; color: #1A2B38; display: flex; align-items: center; gap: 10px; }
.pc-header h3 i { color: var(--portal-gold); }
.pc-desc { font-size: 13px; color: #8A9BAD; margin-bottom: 20px; line-height: 1.6; }
.pc-empty { text-align: center; color: #8A9BAD; padding: 24px; font-size: 14px; }
.pc-empty i { display: block; font-size: 2rem; color: #E8EEF4; margin-bottom: 8px; }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Timeline */
.progress-timeline { display: flex; align-items: flex-start; padding: 10px 0; overflow-x: auto; }
.pt-step { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 120px; position: relative; }
.pt-dot {
    width: 44px; height: 44px; border-radius: 50%; background: #E8EEF4; color: #8A9BAD;
    display: flex; align-items: center; justify-content: center; font-size: 14px;
    margin-bottom: 10px; transition: all 0.4s; border: 3px solid #E8EEF4;
}
.pt-step.completed .pt-dot { background: #2E9E6B; color: #fff; border-color: #2E9E6B; }
.pt-step.active .pt-dot { background: var(--portal-gold); color: #fff; border-color: var(--portal-gold); animation: dotPulse 2s ease-in-out infinite; }
@keyframes dotPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,0.3); } 50% { box-shadow: 0 0 0 10px rgba(212,168,67,0); } }
.pt-info strong { font-size: 12px; font-family: 'Montserrat', sans-serif; color: #1A2B38; display: block; }
.pt-info small { font-size: 10px; color: #8A9BAD; }
.pt-step.completed .pt-info strong { color: #2E9E6B; }
.pt-step.active .pt-info strong { color: var(--portal-gold); }

.pt-line { flex: 1; height: 3px; background: #E8EEF4; margin-top: 22px; min-width: 30px; transition: background 0.4s; }
.pt-line.filled { background: #2E9E6B; }

/* Upload documentos */
.doc-upload-item { padding: 14px 0; border-bottom: 1px solid #f0f4f8; }
.doc-upload-item:last-child { border-bottom: none; }
.doc-upload-item > label { font-size: 13px; font-weight: 600; color: #1A2B38; display: block; margin-bottom: 8px; }
.doc-upload-row { display: flex; align-items: center; gap: 12px; }
.doc-upload-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
    border: 2px dashed #E8EEF4; border-radius: 8px; font-size: 12px; color: var(--portal-primary);
    font-weight: 600; cursor: pointer; transition: all 0.25s;
}
.doc-upload-btn:hover { border-color: var(--portal-primary); background: rgba(43,71,92,0.04); }
.doc-upload-status { font-size: 12px; font-weight: 600; }
.doc-upload-status.sending { color: var(--portal-gold); }
.doc-upload-status.success { color: #2E9E6B; }
.doc-upload-status.error { color: #E53E3E; }

/* Dados da solicitação */
.sol-dados { display: flex; flex-direction: column; gap: 12px; }
.sol-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f4f8; font-size: 13px; }
.sol-item:last-child { border-bottom: none; }
.sol-item span { color: #8A9BAD; }
.sol-item strong { color: #1A2B38; font-weight: 600; }
.sol-contato { margin-top: 20px; padding: 16px; background: #f0f4f8; border-radius: 12px; text-align: center; }
.sol-contato p { font-size: 13px; color: #8A9BAD; margin-bottom: 10px; }
.sol-contato p i { color: var(--portal-gold); }
.sol-whats-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
    background: #25D366; color: #fff; border-radius: 8px; font-size: 13px; font-weight: 600;
    transition: all 0.25s; text-decoration: none;
}
.sol-whats-btn:hover { background: #1da851; transform: translateY(-2px); }

/* Docs enviados */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.doc-enviado-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border: 1px solid #E8EEF4; border-radius: 10px; transition: all 0.25s;
}
.doc-enviado-card:hover { border-color: var(--portal-gold); background: rgba(212,168,67,0.03); }
.dec-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(229,62,62,0.08); color: #E53E3E; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.dec-info { flex: 1; }
.dec-info strong { font-size: 13px; color: #1A2B38; display: block; }
.dec-info small { font-size: 11px; color: #8A9BAD; display: block; }
.dec-download { width: 34px; height: 34px; border-radius: 8px; background: rgba(46,158,107,0.08); color: #2E9E6B; display: flex; align-items: center; justify-content: center; transition: all 0.25s; flex-shrink: 0; }
.dec-download:hover { background: #2E9E6B; color: #fff; }

/* Abas do portal */
.portal-tabs {
    display: flex; gap: 6px; margin-bottom: 24px;
    background: #fff; border-radius: 14px; padding: 6px;
    box-shadow: 0 2px 12px rgba(43,71,92,0.06); border: 1px solid rgba(43,71,92,0.04);
}
.portal-tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
    border: none; border-radius: 10px; font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 600; color: #8A9BAD; background: transparent;
    cursor: pointer; transition: all 0.25s;
}
.portal-tab:hover { color: var(--portal-primary); background: rgba(43,71,92,0.04); }
.portal-tab.active { background: var(--portal-primary); color: #fff; }
.portal-tab i { font-size: 14px; }

.portal-tab-content { display: none; animation: fadeTabIn 0.3s ease; }
.portal-tab-content.active { display: block; }
@keyframes fadeTabIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Form grid operações */
.op-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.op-form-grid .form-group label { font-size: 13px; font-weight: 600; color: #1A2B38; display: block; margin-bottom: 6px; }
.op-form-grid select { width: 100%; padding: 12px; border: 2px solid #E8EEF4; border-radius: 8px; font-size: 14px; font-family: 'Roboto', sans-serif; }
.op-form-grid select:focus { border-color: var(--portal-primary); outline: none; }

/* Drop zone */
.op-drop-zone {
    border: 2px dashed #E8EEF4; border-radius: 14px; padding: 36px 24px;
    text-align: center; cursor: pointer; transition: all 0.3s; background: rgba(43,71,92,0.01);
}
.op-drop-zone:hover, .op-drop-zone.dragover { border-color: var(--portal-gold); background: rgba(212,168,67,0.04); }
.op-drop-zone i { font-size: 2.2rem; color: #E8EEF4; margin-bottom: 10px; display: block; }
.op-drop-zone:hover i, .op-drop-zone.dragover i { color: var(--portal-gold); }
.op-drop-zone p { font-size: 14px; color: #8A9BAD; margin-bottom: 4px; }
.op-drop-zone p strong { color: var(--portal-primary); }
.op-drop-zone small { font-size: 11px; color: #b0bfc9; }

/* Lista de arquivos selecionados */
.op-file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.op-file-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: #f0f4f8; border-radius: 8px; font-size: 13px; color: #1A2B38;
}
.op-file-item i { color: var(--portal-primary); font-size: 1.1rem; }
.op-file-item span { flex: 1; }
.op-file-item small { color: #8A9BAD; }
.op-file-item button { background: none; border: none; color: #E53E3E; cursor: pointer; padding: 4px; font-size: 13px; transition: color 0.2s; }
.op-file-item button:hover { color: #c92a2a; }

/* Histórico de operações */
.op-hist-list { display: flex; flex-direction: column; gap: 12px; }
.op-hist-card {
    border: 1px solid #E8EEF4; border-radius: 12px; overflow: hidden;
    transition: all 0.25s;
}
.op-hist-card:hover { border-color: var(--portal-gold); box-shadow: 0 4px 16px rgba(43,71,92,0.08); }
.op-hist-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; background: #f8fafc;
}
.op-hist-header strong { font-size: 14px; font-family: 'Montserrat', sans-serif; color: #1A2B38; display: block; }
.op-hist-header small { font-size: 11px; color: #8A9BAD; }
.op-hist-status {
    padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700;
    font-family: 'Montserrat', sans-serif; white-space: nowrap;
}
.op-hist-body { padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 16px; }
.op-hist-info { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #5a6f80; }
.op-hist-info i { color: var(--portal-gold); }

@media (max-width: 768px) {
    .portal-tabs { flex-direction: column; }
    .op-form-grid { grid-template-columns: 1fr; }
    .op-hist-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Footer */
.portal-footer { padding: 20px 32px; text-align: center; font-size: 12px; color: #8A9BAD; border-top: 1px solid #E8EEF4; }

/* Responsivo */
@media (max-width: 768px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-welcome { flex-direction: column; gap: 20px; text-align: center; }
    .portal-header { padding: 0 16px; }
    .portal-main { padding: 16px; }
    .progress-timeline { gap: 0; }
    .ph-label { display: none; }
    .ph-sep { display: none; }
}
