/* login.css - Estilo profissional para a página de login do Bauman Care */
:root {
    /* Cores do Dashboard - Esquema profissional */
    --primary-color: #1A365D;     /* Azul principal mais escuro */
    --primary-dark: #0F1E3D;      /* Azul escuro mais profundo */
    --primary-light: #2D4A7A;     /* Azul médio mais rico */
    --secondary-color: #C19A3F;   /* Dourado mais sóbrio */
    --accent-color: #4A7BFF;      /* Azul mais vibrante para destaques */
    --success-color: #2E7D32;     /* Verde para confirmações */
    --warning-color: #ED6C02;     /* Laranja para alertas */
    --error-color: #D32F2F;       /* Vermelho para erros */
    
    /* Cores de Texto */
    --text-color: #1F2937;        /* Texto principal mais escuro */
    --text-light: #6B7280;        /* Texto secundário */
    --text-lighter: #9CA3AF;      /* Texto terciário */
    --text-on-dark: #FFFFFF;      /* Texto claro para fundos escuros */
    
    /* Cores de Fundo */
    --bg-light: #FFFFFF;          /* Fundo branco puro */
    --bg-offwhite: #F9FAFB;       /* Fundo branco levemente acinzentado */
    --bg-light-gray: #F3F4F6;     /* Fundo cinza claro */
    --border-color: #E5E7EB;      /* Cor da borda mais suave */
    
    /* Sombras mais sutis e profissionais */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    /* Bordas */
    --border-radius-sm: 6px;
    --border-radius: 10px;
    --border-radius-lg: 14px;
    --border-radius-xl: 20px;
    
    /* Transições mais suaves */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gradientes */
    --gradient: linear-gradient(135deg, var(--secondary-color), #E8C46E);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #6B8CFF);
    
    /* Tipografia */
    --font-sans: 'Inter', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Poppins', 'Baloo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-offwhite);
    color: var(--text-color);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    letter-spacing: 0.2px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Container principal */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    padding-bottom: 50px; /* Reduced space for the fixed footer */
    width: 100%;
    margin: 0;
    position: relative;
    overflow: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    padding: 1.5rem;
}

/* Card de Login */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: visible;
    text-align: center;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    padding-top: 2rem;
    max-height: 95vh;
    overflow-y: auto;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    opacity: 0.9;
}

.login-header {
    margin: 0 0 1.5rem;
    position: relative;
    padding-top: 0;
    background: transparent;
    border-radius: 0;
    padding-bottom: 0;
    box-shadow: none;
}

.login-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    display: block;
    border-radius: var(--border-radius);
    background: white;
    padding: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.login-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: calc(var(--border-radius) + 2px);
    z-index: -1;
    opacity: 0.5;
    filter: blur(6px);
}

.login-header h1 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.login-header p {
    color: var(--text-lighter);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Formulário */
.login-form {
    margin-top: 1.25rem;
}

.login-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 1.1rem;
    z-index: 2;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    font-weight: 500;
    background-color: var(--bg-offwhite);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    height: auto;
    line-height: 1.4;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    border-width: 1px;
}

.input-with-icon input:focus + i {
    color: var(--primary-color);
}

/* Botão */
.btn-primary {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    position: relative;
    box-shadow: var(--shadow-md);
    font-family: var(--font-sans);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Mensagens de Erro */
.error-message {
    background-color: #FEF2F2;
    color: var(--error-color);
    padding: 0.85rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #FECACA;
    border-left: 4px solid var(--error-color);
    text-align: left;
    line-height: 1.5;
}

.error-message i {
font-size: 1.1rem;
}

/* Rodapé */
.footer {
    text-align: center;
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-top: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    height: 40px;
}

/* Link de registro */
.register-link {
margin-top: 1.25rem;
text-align: center;
color: var(--text-light);
font-size: 0.85rem;
line-height: 1.5;
}

.register-link a {
color: var(--primary-color);
font-weight: 600;
text-decoration: none;
position: relative;
display: inline-flex;
align-items: center;
gap: 0.25rem;
}

.register-link a::after {
content: '→';
opacity: 0;
transform: translateX(-5px);
display: inline-block;
}

.register-link a:hover {
color: var(--primary-dark);
text-decoration: none;
}

.register-link a:hover::after {
opacity: 1;
transform: translateX(3px);
}

/* Responsividade */
@media (max-width: 480px) {
.main-container {
padding: 0.75rem;
display: flex;
flex-direction: column;
min-height: 100vh;
position: relative;
padding-bottom: 35px;
}

.container {
padding: 0;
max-width: 100%;
height: 100%;
display: flex;
align-items: center;
}

.login-card {
padding: 1.25rem 1rem;
padding-top: 4rem;
margin: 0 auto;
max-height: none;
width: 100%;
border-radius: var(--border-radius-lg);
max-width: 100%;
overflow-y: visible;
}

.login-logo {
width: 75px;
height: 75px;
padding: 0.65rem;
}

.login-header {
margin: -65px 0 1.25rem;
padding-top: 65px;
}

.login-header h1 {
font-size: 1.4rem;
margin-bottom: 0.2rem;
}

.login-header p {
font-size: 0.85rem;
}

.input-with-icon input {
padding: 0.7rem 0.9rem 0.7rem 2.5rem;
font-size: 0.9rem;
}

.btn-primary {
padding: 0.8rem 1.1rem;
font-size: 0.9rem;
margin-top: 1rem;
}

.footer {
font-size: 0.7rem;
padding: 0.4rem 0;
position: static;
margin-top: 1.5rem;
height: auto;
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.register-link {
margin-top: 1.25rem;
font-size: 0.8rem;
}
}