html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container {
    display: flex;
    width: 100%;
    height: 100vh;
}

.info-panel {
    background-color: #4f46e5;
    color: white;
    width: 40%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-weight: 300;
}

.info-panel h2, .info-panel h3 {
    font-weight: 500;
}

.login-panel {
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    padding: 2rem;
}

.container {
    max-width: 1400px;
}
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #4f46e5;
    animation: spin 1s ease infinite;
    margin-left: auto;
    margin-right: auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 0.875rem;
    color: #334155;
    background-color: white;
    transition: border-color 0.15s ease-in-out;
}
.filter-input:focus {
    outline: none;
    border-color: #4f46e5;
}
.filter-input:disabled {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #ced4da;
}
input[type="date"].filter-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
}
input[type="date"].filter-input::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(220deg);
}
input[type="date"].filter-input:disabled::-webkit-calendar-picker-indicator {
    opacity: 0.3;
    cursor: not-allowed;
}
.filter-button {
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
}
.filter-button i {
    font-size: 0.8em;
}
.filter-button:disabled {
    background-color: #a5b4fc;
    color: #e0e7ff;
    cursor: not-allowed;
}
.filter-button:disabled:hover {
    background-color: #a5b4fc;
}
.delivery-card {
    background-color: white;
    border-radius: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 0.75rem 1rem 1rem 1rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    position: relative;
}
.delivery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.card-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid #e5e7eb;
}
.card-brand {
    grid-column: 1 / 2;
    justify-self: start;
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}
.motorista-info {
    grid-column: 2 / 3;
    justify-self: center;
    display: flex;
    align-items: center;
}
.motorista-icon {
    color: #4f46e5;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}
.motorista-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-body {
    flex-grow: 1;
}
.card-body p {
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
}
.card-body p i {
    width: 18px;
    margin-right: 0.6rem;
    color: #6b7280;
    text-align: center;
}
.card-body .label {
    font-weight: 500;
    color: #374151;
    margin-right: 0.25rem;
    flex-shrink: 0;
}
.card-body .value {
    color: #1f2937;
    word-break: break-word;
    text-align: right;
    flex-grow: 1;
}
.card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #4b5563;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-footer i {
    margin-right: 0.5rem;
    color: #6b7280;
}
.card-footer .value {
    word-break: break-word;
}

.login-page-body {
    background-image: none;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.logo-container {
    margin-bottom: 2.5rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 200;
    color: #1f2937;
    text-align: center;
    letter-spacing: -0.2rem;
}

.login-page-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    text-shadow: none;
}
.login-card-glass {
    box-sizing: border-box;
    width: 100%;
    max-width: 380px; 
    padding: 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    text-align: center;
    cursor: default;
    transition: none;
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start;
    margin: 0;
}

.login-card-glass:hover {
   transform: none;
   box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.login-card-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1f2937;
    text-shadow: none;
}
.login-form-label {
    display: block;
    text-align: left;
    margin-bottom: 0.3rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    text-shadow: none;
}

#loginButton {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0;
}

#loginButton .btn-txt {
    z-index: 1;
    font-weight: 700;
    letter-spacing: 1px; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; 
    transition: color 0.5s ease-in-out;
}

#loginButton.type1::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.5s ease-in-out;
    background-color: white; 
    border-radius: 0; 
    visibility: hidden;
    height: 10px;
    width: 10px;
    z-index: 0; 
}

#loginButton.type1:hover {
    box-shadow: 0px 0px 25px rgba(79, 70, 229, 0.5); 
    border-color: transparent; 
}

#loginButton.type1:hover .btn-txt {
    color: #4f46e5; 
}

#loginButton.type1:hover::after {
    visibility: visible;
    transform: scale(100) translateX(0); 
}

#loginButton:active {
    transform: scale(0.98);
}

.login-form-input {
    color: #1f2937;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0;
}
.login-form-input::placeholder {
    color: #6b7280;
}
.login-error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 0;
    text-shadow: none;
}


@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .info-panel {
        width: 100%;
        padding: 2rem;
        text-align: center;
    }

    .login-panel {
        width: 100%;
        padding: 1rem;
        justify-content: flex-start;
    }
    
    .login-card-glass {
        min-height: auto;
        padding: 1.5rem;
        box-shadow: none;
        border: none;
    }
}
@media (max-width: 500px) {
    .info-panel {
        display: none;
    }
    .login-panel {
        width: 100%;
        min-height: 100vh;
        justify-content: center;
    }
}
