* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header-form {
    background-color: #000000;
    color: #ffffff;
}

.header-form .btn-back {
    color: #ffffff !important;
    font-weight: 600;
    transition: color 0.2s;
    background-color: #ec4434;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-form .btn-back:hover {
    color: #000000 !important;
    background-color: #c7342a;
}

.header-form h1 {
    color: #ffffff !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-4>*+* {
    margin-left: 1rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.min-h-screen {
    min-height: 100vh;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.mr-4 {
    margin-right: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.ml-6 {
    margin-left: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.border {
    border: 1px solid #e5e7eb;
}

.border-b {
    border-bottom: 1px solid #e5e7eb;
}

.cursor-pointer {
    cursor: pointer;
}

.transition {
    transition-property: all;
    transition-duration: 200ms;
}

/* Background Colors */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-blue-100 {
    background-color: #dbeafe;
}

.bg-blue-600 {
    background-color: #ec4434;
}

.bg-blue-700 {
    background-color: #ec4434;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-200 {
    background-color: #bbf7d0;
}

.bg-gradient {
    background: #000000;
}

/* Text Colors */
.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-800 {
    color: #000000;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-800 {
    color: #166534;
}

.text-red-500 {
    color: #ec4434;
}

/* Border Colors */
.border-gray-200 {
    border-color: #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.border-blue-300 {
    border-color: #93c5fd;
}

.border-transparent {
    border-color: transparent;
}

/* Hover Effects */
.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:bg-gray-200:hover {
    background-color: #e5e7eb;
}

.hover\:bg-green-200:hover {
    background-color: #bbf7d0;
}

.hover\:text-blue-800:hover {
    color: #000000;
}

.hover\:text-gray-700:hover {
    color: #374151;
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:border-blue-300:hover {
    border-color: #93c5fd;
}

/* Focus Effects */
.focus\:ring-2:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #1d4ed8, 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.focus\:border-transparent:focus {
    border-color: transparent;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Icon Sizes */
.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-16 {
    width: 4rem;
}

.h-16 {
    height: 4rem;
}

/* Form Elements */
input,
textarea,
select,
button {
    font-family: inherit;
}

input,
textarea,
select {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #ec4434;
}

button {
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: #ec4434;
    color: white;
}

.btn-primary:hover {
    background-color: #a5473e;
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
}

.btn-success {
    background-color: #dcfce7;
    color: #166534;
}

.btn-success:hover {
    background-color: #bbf7d0;
}

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Custom Styles */
.contract-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s;
}

.contract-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #fdbf93;
}

.icon-container {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.left-3 {
    left: 0.75rem;
}

.top-1\/2 {
    top: 50%;
}

.transform {
    transform: var(--tw-transform);
}

.-translate-y-1\/2 {
    --tw-transform: translateY(-50%);
}

.pl-10 {
    padding-left: 2.5rem;
}

.pr-4 {
    padding-right: 1rem;
}

.inline-flex {
    display: inline-flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.capitalize {
    text-transform: capitalize;
}

.text-xs {
    font-size: 0.75rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.footer-custom {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    margin-top: 0px;
}

.footer-custom a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-custom a:hover {
    color: #ec4434;
}

.footer-content {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 30px;
    height: auto;
}

.btn-logout {
    background-color: #ec4434;
    color: #ffffff;
}

.btn-logout:hover {
    background-color: #ee8a54;
}

.header-custom {
    background-color: #000000;
    color: #ffffff;
}

.header-custom h1,
.header-custom span,
.header-custom button {
    color: #ffffff !important;
}

.header-custom .btn-success {
    background-color: #ffffff;
    color: #000000;
}

.header-custom .btn-success:hover {
    background-color: #f3f4f6;
}

.btn-orange {
    background-color: #ec4434;
    color: #ffffff;
}

.btn-orange:hover {
    background-color: #b9544b;
}

.logo-login {
    width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 8px;
    background: white;
    border-radius: 12px;
}

.success-icon {
    background-color: #dcfce7;
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.success-icon:hover {
    transform: scale(1.05);
}

.success-icon i {
    color: #16a34a;
    font-size: 3rem;
}

.logo-topo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    object-fit: contain;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    margin-right: 12px;
}

/* Estilos específicos para o login ajustado */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #ec4434;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: #ec4434;
}

.checkbox-container label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.login-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

/* Adicione isso no final do Contrato.css */
#contractDetailsModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
}
#contractDetailsModal:not(.hidden) {
    display: flex !important;
}
.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contract-section {
    margin-bottom: 1.5rem;
}

.contract-section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ec4434;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.contract-field {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.field-label {
    font-weight: bold;
    color: #333;
    min-width: 180px;
}

.field-value {
    color: #555;
    word-break: break-word;
}




#contractDetailsModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
}
#contractDetailsModal:not(.hidden) {
    display: flex !important;
}

#contractDetailsModal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
}

#closeModalBtn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 50;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    padding: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

#closeModalBtn:hover {
    background-color: #e5e7eb;
}
.bg-gradient {
    background: #000000;
}
.bg-gradient {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('New imagem.png') no-repeat center 20%;
    background-size: cover;
    background-attachment: fixed;
}

/* Caixa branca com mais blur e transparência suave */
#loginScreen .bg-white {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 1rem;
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
}