/* ============================================================================
   LOGIN.CSS — Página de login
   Dependência: site.css carregado ANTES deste ficheiro
   NÃO inclui: header, footer, nav, .btn — definidos em site.css
   ============================================================================ */

/* ─── Layout ─────────────────────────────────────────────────────────────────── */
main {
    padding-top: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

/* ─── Card de Login ──────────────────────────────────────────────────────────── */
.login-card {
    background: #1a1f3a;
    padding: 3rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ccff;
}

/* ─── Formulário ─────────────────────────────────────────────────────────────── */
.form-group    { margin-bottom: 1.5rem; }
.form-label    { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: #a0aec0; }

.form-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    transition: 0.3s;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-input:focus {
    border-color: #0066ff;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
}

/* ─── Botão submit (override site.css .btn-primary para 100% width) ─────────── */
.login-card .btn-primary {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-card .btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ─── Links ──────────────────────────────────────────────────────────────────── */
.links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.links a {
    color: #a0aec0;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.links a:hover { color: #fff; }

/* ─── Dropdown nav (específico desta página) ─────────────────────────────────── */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1f3a;
    min-width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-content { display: block; }

.dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #a0aec0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover {
    background: rgba(0, 204, 255, 0.1);
    color: #fff;
    padding-left: 1.8rem;
}

.nav-link {
    color: #a0aec0;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover { color: #00ccff; }
