/* Estilos para as páginas de autenticação */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    padding: 15px;
    margin: 0; /* Garantir que não haja margin em nenhum navegador */
}

.auth-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card {
    transition: all 0.3s ease;
    width: 100%; /* Garantir que o card ocupe a largura total do container */
}

/* Aumentar a largura do container para todos os tamanhos */
.container {
    max-width: 100%;
}

/* Regras para telas grandes */
@media (min-width: 992px) {
    .col-lg-6 {
        min-width: 480px;
    }
    
    .card {
        min-width: 480px;
    }
}

/* Regras para telas médias */
@media (min-width: 768px) and (max-width: 991px) {
    .col-md-8 {
        min-width: 450px;
    }
    
    .card {
        min-width: 450px;
    }
}

/* Regras para telas pequenas */
@media (min-width: 576px) and (max-width: 767px) {
    .col-sm-11 {
        min-width: 400px;
    }
    
    .card {
        min-width: 400px;
    }
}

.card-header {
    background: linear-gradient(to right, #4e73df, #224abe);
    color: white;
    border-radius: 10px 10px 0 0;
}

.card-body {
    padding: 2rem;
}

.form-control {
    padding: 1rem 0.75rem;
    border-radius: 5px;
    font-size: 1rem;
    height: auto;
}

.form-control-lg {
    min-height: 3.5rem;
}

.form-floating label {
    padding: 1rem 0.75rem;
}

.form-floating>.form-control-lg:focus~label,
.form-floating>.form-control-lg:not(:placeholder-shown)~label {
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
    color: #4e73df;
}

.btn-primary {
    background: linear-gradient(to right, #4e73df, #224abe);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(to right, #224abe, #1a3a8f);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
}

.invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

/* Correções específicas para Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    .form-floating label {
        padding: 1rem 0.75rem;
    }
    
    .form-control-lg {
        line-height: 1.5;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }
}

/* Media queries para responsividade em smartphones */
@media (max-width: 575px) {
    body {
        padding: 10px;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .form-control {
        font-size: 16px; /* Evita zoom em iPhones */
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
    }
    
    .card {
        min-width: 100%;
        max-width: 100%;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Para telas muito pequenas */
@media (max-width: 400px) {
    .card-body {
        padding: 1rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    .form-floating label {
        font-size: 0.9rem;
    }
}

.card-header img {
    position: relative;
    z-index: 2;
    max-width: 250px !important;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.card-header img:hover {
    transform: scale(1.02);
}

.modern-input {
    border: 2px solid #e1e5eb;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
    background: white;
}

.modern-button {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    transition: all 0.3s ease;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.modern-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
    border: 2px solid #e1e5eb;
}

.modern-checkbox:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

.alert-modern {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.alert-modern i {
    font-size: 1.1rem;
}

.alert-success.alert-modern {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
}

.alert-danger.alert-modern {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

/* Responsividade */
@media (max-width: 576px) {
    .card-header {
        padding: 2.5rem 1rem;
    }
    
    .card-header img {
        max-width: 200px !important;
    }
    
    .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .modern-input {
        font-size: 16px;
    }
}

/* Estilos modernos para autenticação */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    padding: 15px;
    margin: 0;
}

.auth-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bg-gradient {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
}

.card-header img {
    position: relative;
    z-index: 2;
    max-width: 250px !important;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
}

.card-header img:hover {
    transform: scale(1.02);
}

.modern-input {
    border: 2px solid #e1e5eb;
    border-radius: 10px;
    padding: 1.2rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.modern-input:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.15);
    background: white;
}

.modern-button {
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    transition: all 0.3s ease;
}

.modern-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.3);
}

.modern-checkbox {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 4px;
    border: 2px solid #e1e5eb;
}

.modern-checkbox:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

.alert-modern {
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.alert-modern i {
    font-size: 1.1rem;
}

.alert-success.alert-modern {
    background-color: rgba(28, 200, 138, 0.1);
    color: #1cc88a;
}

.alert-danger.alert-modern {
    background-color: rgba(231, 74, 59, 0.1);
    color: #e74a3b;
}

/* Responsividade */
@media (max-width: 576px) {
    .card-header {
        padding: 2.5rem 1rem;
    }
    
    .card-header img {
        max-width: 200px !important;
    }
    
    .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    .modern-input {
        font-size: 16px;
    }
} 