:root {
    --primary-color: #1e508a;
    --secondary-color: #f3f4f6;
    --text-color: #1f2937;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    background-image: url('../img/bk5.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
   * {
        box-sizing: border-box;
        font-family: 'Inter', sans-serif;
        color: var(--text-color);
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

form {
    background: #ffffff39;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    transition: 0.5s;
}

form:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    transition: 0.5s;
}

.logo-system {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 4px #0000002d);
}
.logo-system:hover{
    scale: 1.05;
}

.company-logo {
    max-width: 100px;
    height: auto;
    margin-top: 1rem;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
}

.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .fa-eye,
.password-wrapper .fa-eye-slash {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    transition: var(--transition);
}

.password-wrapper .fa-eye:hover,
.password-wrapper .fa-eye-slash:hover {
    color: var(--primary-color);
}

.btns {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    border: none;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    border-radius: var(--border-radius);
    width: 100%;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.form-footer {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.env-banner {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    z-index: 1000;
}

.env-banner.development {
    background: #fef08a;
    color: #854d0e;
}

.env-banner.homolog {
    background: #34d399;
    color: #ffffff;
}

.alert-danger {
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
}

.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.modal.fade .modal-dialog {
    transform: translateY(-50px);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-body {
    padding: 1.5rem;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    height: 40px;
    padding: 0.5rem;
    font-size: 1rem;
}

.select2-container--default .select2-selection--single:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    form {
        padding: 1.5rem;
        max-width: 90%;
    }
    .logo-system {
        max-width: 250px;
    }
    .modal-dialog {
        margin: 0.5rem;
    }
}