/* ========================================
   60maisPlay - Tela de Login
   Estilo moderno e amigável
   ======================================== */

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

:root {
    --primary: #F4B400;
    --primary-dark: #E5A800;
    --secondary: #1a1a1a;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-light: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e0e0e0;
    --error: #e74c3c;
    --success: #4CAF50;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-secondary);
    min-height: 100vh;
}

/* Container Principal */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* ========================================
   LADO ESQUERDO - BRAND
   ======================================== */
.login-brand {
    flex: 1;
    background: var(--secondary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 60px 40px 60px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.brand-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(244, 180, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 180, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.brand-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin-top: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.logo-play {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 16px;
}

.brand-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.5;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: white;
}

.feature-item i {
    color: var(--primary);
    font-size: 24px;
}

/* ========================================
   LADO DIREITO - FORMULÁRIO
   ======================================== */
.login-form-container {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px 40px 40px;
    background: var(--bg-primary);
    min-height: 100vh;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    margin-top: 20px;
}

.form-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Formulário */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 18px;
}

.input-wrapper input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(244, 180, 0, 0.1);
}

.input-wrapper input::placeholder {
    color: #757575; /* Melhor contraste para idosos */
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-secondary);
}

/* Opções do Formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: var(--text-secondary);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: var(--secondary);
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.4);
}

.btn-google {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-google:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
}

.btn-google i {
    color: #DB4437;
}

/* Divisor */
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Link de Cadastro */
.register-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.register-link p {
    font-size: 16px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Seção de Ajuda */
.help-section {
    margin-top: 40px;
    padding: 24px;
    background: #FFF8E1;
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    text-align: center;
}

.help-section p {
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.help-section i {
    color: var(--primary);
    margin-right: 8px;
}

.help-text {
    font-size: 15px !important;
}

.help-text a {
    color: #D49400;
    text-decoration: underline;
    font-weight: 700;
    font-size: 18px;
}

.help-text a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-brand {
        padding: 40px 30px;
        min-height: auto;
    }
    
    .brand-title {
        font-size: 36px;
    }
    
    .brand-features {
        display: none;
    }
    
    .login-form-container {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .brand-title {
        font-size: 28px;
    }
    
    .form-title {
        font-size: 26px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ========================================
   BOTÃO WHATSAPP FLUTUANTE
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--secondary);
    color: white;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--secondary);
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-wrapper {
    animation: fadeIn 0.6s ease;
}

/* Focus visível */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
