/* ============================================================ */
/* STYLE_LOGIN.CSS - Estilos da Página de Login */
/* ============================================================ */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0f172a;
}

/* ============================================================ */
/* NAVBAR */
/* ============================================================ */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

nav .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

nav .logo span {
    color: #2563eb;
}

nav a.back-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a.back-link:hover {
    color: #2563eb;
}

/* ============================================================ */
/* LAYOUT PRINCIPAL */
/* ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ============================================================ */
/* LADO ESQUERDO - Imagem de Fundo */
/* ============================================================ */
.login-left {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
                url('https://radioportalegre.pt/wp-content/uploads/2024/05/futsal_02-1024x576-1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: white;
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.1));
}

.login-left-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    text-align: center;
}

.login-left h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.login-left p {
    font-size: 1.1rem;
    color: #e5e7eb;
    line-height: 1.8;
}

/* ============================================================ */
/* LADO DIREITO - Formulário */
/* ============================================================ */
.login-right {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* ============================================================ */
/* ALERTAS */
/* ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #16a34a;
}

/* ============================================================ */
/* TABS - Seleção de Tipo de Utilizador */
/* ============================================================ */
.login-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 10px;
}

.login-tab {
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.login-tab:hover {
    color: #374151;
}

.login-tab.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================================ */
/* FORMULÁRIO */
/* ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #f9fafb;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ============================================================ */
/* BOTÕES */
/* ============================================================ */
.btn {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* ============================================================ */
/* RESPONSIVE - Mobile */
/* ============================================================ */
@media (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        padding: 120px 2rem 2rem;
    }
}

@media (max-width: 640px) {
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .login-tabs {
        grid-template-columns: 1fr;
    }
}