* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: url('/fundos/BG_4.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    position: relative;
}

.login-box {
    background: url('/imagens/log_bg.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%
    );
    z-index: 1;
}

.logo {
    text-align: center;
    padding: 35px 25px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.entity-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.license-validity {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-container {
    position: relative;
    z-index: 2;
    padding: 35px;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.input-group:focus-within .icon {
    opacity: 1;
}

.user-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z' /%3E%3C/svg%3E");
}

.lock-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z' /%3E%3C/svg%3E");
}

.calendar-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
}

.building-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4' /%3E%3C/svg%3E");
}

input, select {
    width: 100%;
    padding: 14px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3748;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

input:focus, select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
    background-color: #ffffff;
}

input::placeholder {
    color: #a0aec0;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-link {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: underline;
    opacity: 0.8;
}

.btn-link:hover {
    color: #2d3748;
    opacity: 1;
}

.footer {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.loading {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
}

.loading::after {
    content: '...';
    position: absolute;
    animation: loading 1s infinite;
}

@keyframes loading {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

.btn-submit:disabled {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.swal2-popup {
    font-family: Arial, sans-serif;
    border-radius: 12px;
}

.swal2-title {
    color: #1a365d !important;
    font-size: 1.5rem !important;
}

.swal2-html-container {
    color: #4a5568 !important;
    font-size: 1rem !important;
}

.swal2-confirm {
    border-radius: 8px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .login-box {
        border-radius: 10px;
    }

    .logo {
        padding: 25px 20px;
    }

    .form-container {
        padding: 25px;
    }

    .entity-name {
        font-size: 1.1rem;
    }

    .license-validity {
        font-size: 0.85rem;
    }

    input, select {
        padding: 12px 40px;
        font-size: 14px;
    }

    .btn-submit {
        padding: 12px;
        font-size: 15px;
    }
}