* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f6f9; color: #333; }
a { text-decoration: none; }

/* =========================================
   Portal Principal
========================================= */
.portal-header { background-color: #1d2630; color: #fff; padding: 40px 20px; text-align: center; border-bottom: 5px solid #b6342d; }
.header-container .logo-escudo { width: 70px; height: auto; margin-bottom: 10px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.header-container h1 { text-transform: uppercase; font-size: 2.2em; letter-spacing: 1px; }
.header-container p { color: #bdc3c7; margin-top: 5px; }

.portal-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

.card { background: #fff; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; text-align: center; border-top: 4px solid #7dadc1; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.card.text-destaque { border-top-color: #edc54f; }
.card.restrito { border-top-color: #b6342d; background-color: #fdfcfc; }
.card.recrutamento-card { border-top-color: #28a745; background-color: #f4fbf5; } /* Verde para chamar atenção */

.card-body { padding: 30px 20px; display: flex; flex-direction: column; justify-content: space-between; height: 100%; width: 100%; gap: 15px; }
.card-body h3 { color: #1d2630; font-size: 1.3em; }
.card-body p { color: #666; font-size: 0.95em; line-height: 1.4; }
.lock-text { color: #b6342d !important; font-weight: bold; font-size: 0.85em !important; }

/* Botões dos Cards */
.btn-card { display: block; padding: 10px; background-color: #1d2630; color: #fff; border-radius: 4px; font-weight: bold; transition: background 0.2s; }
.btn-card:hover { background-color: #2d414e; }
.btn-restrito { background-color: #b6342d; }
.btn-restrito:hover { background-color: #8e2823; }
.btn-recrutamento { background-color: #28a745; }
.btn-recrutamento:hover { background-color: #1e7e34; }


/* =========================================
   Página de Recrutamento Isolada
========================================= */
.bg-recrutamento { background-color: #1d2630; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.recrutamento-wrapper { background: #fff; border-radius: 8px; width: 100%; max-width: 600px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); overflow: hidden; }

.recrutamento-header { background-color: #f8f9fa; padding: 30px 20px; text-align: center; border-bottom: 2px solid #eee; }
.recrutamento-header img { width: 60px; margin-bottom: 10px; }
.recrutamento-header h2 { color: #1d2630; text-transform: uppercase; }

.recrutamento-content { padding: 40px 30px; text-align: center; }
.recrutamento-content > p { color: #555; margin-bottom: 30px; font-size: 1.05em; line-height: 1.5; }

.input-group { display: flex; gap: 10px; flex-wrap: wrap; } /* Flex-wrap para telas muito pequenas */
.input-group input { flex: 1; min-width: 200px; padding: 15px; border: 2px solid #ccc; border-radius: 6px; font-size: 1.1em; font-weight: bold; text-transform: uppercase; }
.input-group input:focus { border-color: #b6342d; outline: none; }
.input-group button { padding: 15px 30px; background: #b6342d; color: #fff; border: none; border-radius: 6px; font-weight: bold; font-size: 1.1em; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.input-group button:hover { background: #8e2823; }

/* Feedbacks Recrutamento */
.feedback { margin-top: 30px; padding: 25px; border-radius: 6px; }
.hidden { display: none !important; }

.card-sucesso { background-color: #e6ffed; border: 1px solid #28a745; color: #22863a; }
.card-sucesso h3 { margin-bottom: 10px; font-size: 1.3em; }

.links-aprovacao { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.btn-wpp { display: block; padding: 12px; background: #25D366; color: #fff; font-weight: bold; border-radius: 4px; transition: background 0.2s; }
.btn-wpp:hover { background: #128C7E; }
.btn-game { display: block; padding: 12px; background: #1d2630; color: #fff; font-weight: bold; border-radius: 4px; transition: background 0.2s; }
.btn-game:hover { background: #2d414e; }

.card-erro { background-color: #ffeef0; border: 1px solid #dc3545; color: #86181d; }
.card-erro h3 { margin-bottom: 10px; font-size: 1.3em; }
.nota-recrutamento { font-size: 0.9em; margin-top: 15px; font-style: italic; color: #b6342d; }

.voltar-portal { text-align: center; padding: 20px; background-color: #f8f9fa; border-top: 1px solid #eee; }
.voltar-portal a { color: #666; font-weight: bold; transition: color 0.2s; }
.voltar-portal a:hover { color: #1d2630; }

/* Spinner */
.spinner { border: 4px solid rgba(0, 0, 0, 0.1); width: 40px; height: 40px; border-radius: 50%; border-left-color: #b6342d; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }