/*========================================
  LOGIN PAGE - TEMPORARY STYLES
  Estilo temporário baseado na nova imagem
  Inclui estilos essenciais do Bootstrap
==========================================*/

/* ========== RESET E BASE ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #001D61;
    -webkit-text-size-adjust: 100%;
    background-image: 
        radial-gradient(ellipse 80% 100% at center, #001D61 0%, #001850 30%, #001340 60%, #000A1F 85%, #000510 100%),
        radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    background-position: center center, 0 0;
}

/* ========== CONTAINER E GRID ========== */
.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container { max-width: 540px; }
}
@media (min-width: 768px) {
    .container { max-width: 720px; }
}
@media (min-width: 992px) {
    .container { max-width: 960px; }
}
@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-lg-6 { flex: 0 0 auto; width: 100%; }
.col-md-8 { flex: 0 0 auto; width: 100%; }
.col-sm-10 { flex: 0 0 auto; width: 100%; }

@media (min-width: 576px) {
    .col-sm-10 { width: 83.33333%; }
}
@media (min-width: 768px) {
    .col-md-8 { width: 66.66667%; }
}
@media (min-width: 992px) {
    .col-lg-6 { width: 50%; }
}

.justify-content-center {
    justify-content: center;
}

/* ========== UTILITIES ========== */
.d-flex { display: flex; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.fw-light { font-weight: 300; }
.img-fluid { max-width: 100%; height: auto; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.me-2 { margin-right: 0.5rem; }

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.border-0 { border: 0; }
.rounded-lg { border-radius: 0.5rem; }

/* ========== CARD ========== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.5rem;
}

.card-body {
    flex: 1 1 auto;
    padding: 1.5rem;
}

/* ========== FORMS ========== */
.form-floating {
    position: relative;
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.5rem;
}

/* ========== ALERTS ========== */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.d-flex { display: flex; }
.align-items-center { align-items: center; }

/* ========== ESTILOS ESPECÍFICOS DO LOGIN ========== */

/* Layout de Autenticação */
#layoutAuthentication {
    background-color: #001D61;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: 
        radial-gradient(ellipse 80% 100% at center, #001D61 0%, #001850 30%, #001340 60%, #000A1F 85%, #000510 100%),
        radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    background-position: center center, 0 0;
}

#layoutAuthentication_content {
    width: 100%;
}

/* Card de Login */
#layoutAuthentication .login-card {
    background-color: #0A192F !important;
    border-radius: 16px !important;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5),
                0 0 60px rgba(59, 130, 246, 0.3),
                0 4px 20px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(59, 130, 246, 0.6) !important;
    overflow: hidden;
    max-width: 380px;
    margin: 0 auto;
}

#layoutAuthentication .login-card .card-body {
    padding: 2.5rem 2rem !important;
    background-color: #0A192F !important;
}

/* Logo */
#layoutAuthentication .img-logo {
    max-width: 200px !important;
    height: auto;
}

/* Títulos e Textos */
#layoutAuthentication h3 {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 300;
    margin-top: 0.5rem;
}

/* Inputs */
#layoutAuthentication .form-control {
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    border-radius: 6px !important;
    height: 48px;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
}

#layoutAuthentication .form-control:focus {
    background-color: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    color: #374151 !important;
}

#layoutAuthentication .form-control::placeholder {
    color: #9ca3af;
}

/* Botão de Login */
#layoutAuthentication .btn-dark {
    color: #fff !important;
    background-color: #007bff !important;
    border: none !important;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: none;
}

#layoutAuthentication .btn-dark:hover {
    background-color: #0056b3 !important;
}

#layoutAuthentication .btn-dark:active {
    background-color: #004085 !important;
}

#layoutAuthentication .btn-dark i {
    display: none;
}

/* Alerts */
#layoutAuthentication .alert {
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
}

#layoutAuthentication .alert-danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

#layoutAuthentication .alert-warning {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
}

/* Responsividade */
@media (max-width: 576px) {
    #layoutAuthentication .login-card {
        margin: 1rem;
        border-radius: 12px !important;
    }
    
    #layoutAuthentication .login-card .card-body {
        padding: 2rem 1.5rem !important;
    }
    
    #layoutAuthentication .img-logo {
        max-width: 180px !important;
    }
}
