/* HubLike CRM - Estilos Principais */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset e configurações globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #eff5ff 0%, #d1dcfa 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    color: #1e293b;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

/* Container principal de autenticação */
.auth-container {
    display: flex;
    width: 1000px;
    max-width: 95%;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Seção da imagem/informações */
.auth-image {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.auth-image h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.auth-image p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Lista de recursos */
.auth-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
}

.auth-features li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.05rem;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.auth-features li:nth-child(1) { animation-delay: 0.1s; }
.auth-features li:nth-child(2) { animation-delay: 0.2s; }
.auth-features li:nth-child(3) { animation-delay: 0.3s; }
.auth-features li:nth-child(4) { animation-delay: 0.4s; }
.auth-features li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-features i {
    margin-right: 15px;
    background-color: rgba(255, 255, 255, 0.25);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Seção do formulário */
.auth-form {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-form-header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 12px;
    font-weight: 700;
}

.auth-form-header p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.5;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #3b82f6;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #9ca3af;
}

/* Opções do formulário */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check input {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.form-check label {
    margin-bottom: 0;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Links */
.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.forgot-password:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Botões */
.btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Rodapé de autenticação */
.auth-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-footer a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .auth-image {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .auth-form {
        padding: 40px 30px;
    }
    
    .auth-form-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-image h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 30px 20px;
    }
    
    .auth-image {
        padding: 30px 20px;
    }
    
    .form-control {
        padding: 12px 16px;
    }
    
    .btn {
        padding: 14px 20px;
    }
}

/* Alertas e mensagens */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid;
    position: relative;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-success::before {
    content: '✓';
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: #16a34a;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.alert-error::before {
    content: '⚠';
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: #dc2626;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-info::before {
    content: 'ℹ';
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
    color: #3b82f6;
}

/* Loading spinner */
.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* evita quebrar colunas */
}

/* Avatar images inside avatar containers */
.user-avatar img,
.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}