/* Cores do tema */
:root {
    --color-primary: #3D2C1F;
    --color-secondary: #AA5522;
    --color-accent: #A56929;
    --color-light: #F1ECE3;
}

/* Estilos para a página de login */
.login-page {
    background-image: url('https://paesnovaesperanca.com.br/wp-content/uploads/2023/08/BANNER-PRODUTOS.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61, 44, 31, 0.85) 0%, rgba(170, 85, 34, 0.75) 100%);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(241, 236, 227, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(61, 44, 31, 0.3);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 500px;
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--color-light);
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(241, 236, 227, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 1;
    position: relative;
}

.login-subtitle {
    font-size: 1.1rem;
    text-align: center;
    opacity: 0.9;
    z-index: 1;
    position: relative;
}

.login-right {
    flex: 1;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box-msg {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle-text {
    font-size: 0.95rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 30px;
}

/* Inputs customizados */
.input-group {
    margin-bottom: 20px;
}

.input-group-text {
    background: var(--color-primary);
    border: none;
    color: var(--color-light);
    border-radius: 10px 0 0 10px;
    padding: 12px 15px;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 0 10px 10px 0;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.2rem rgba(170, 85, 34, 0.25);
    outline: none;
}

.input-group-prepend + .form-control {
    border-left: none;
}

/* Botão customizado */
.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(170, 85, 34, 0.3);
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(170, 85, 34, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Checkbox customizado */
.icheck-primary input[type="checkbox"]:checked + label::before {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.icheck-primary label {
    color: var(--color-primary);
    font-weight: 500;
}

/* Links */
a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* Alertas */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border-left: 4px solid #c33;
}

.alert-success {
    background-color: #efe;
    color: #3c3;
    border-left: 4px solid #3c3;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 100%;
    }
    
    .login-left {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .login-right {
        padding: 30px 20px;
    }
    
    .login-logo {
        font-size: 2rem;
    }
    
    .login-box-msg {
        font-size: 1.5rem;
    }
}

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

.login-right {
    animation: fadeIn 0.6s ease-out;
}

/* Melhorias de acessibilidade */
.form-control:focus,
.btn-primary:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

