body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: #0d1117;
    font-family: 'Inter', sans-serif;
}

.form-container {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    background-color: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.img-logo-login {
    max-width: 250px;
    height: auto;
}

.form {
    margin-top: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8b949e !important;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    outline: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #e6edf3 !important;
    background-color: #21262d !important;
}

.input-group input::placeholder {
    color: #525a64;
}

.input-group input:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12) !important;
    background-color: #21262d !important;
}

/* Neutraliza o fundo amarelo/branco do autopreenchimento do browser */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #21262d inset !important;
    -webkit-text-fill-color: #e6edf3 !important;
    caret-color: #e6edf3;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.sign {
    display: block;
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.sign:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.sign:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.sign:disabled .button-text {
    display: none;
}

.sign:disabled .loader-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.loader-container {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 24px;
    height: 24px;
    overflow: visible;
    transform: rotate(-90deg);
    transform-origin: center;
    --active: #ffffff;
    --track: rgba(255, 255, 255, 0.3);
    --duration: 2s;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { rotate: 0deg; }
    100% { rotate: 360deg; }
}

.active {
    stroke: var(--active);
    stroke-linecap: round;
    stroke-dashoffset: 360;
    animation: active-animation var(--duration) ease-in-out infinite;
}

.track {
    stroke: var(--track);
    stroke-linecap: round;
    stroke-dashoffset: 360;
    animation: track-animation var(--duration) ease-in-out infinite;
}

@keyframes active-animation {
    0% { stroke-dasharray: 0 360; }
    50% { stroke-dasharray: 180 180; }
    100% { stroke-dasharray: 360 0; }
}

@keyframes track-animation {
    0% { stroke-dasharray: 0 360; }
    50% { stroke-dasharray: 180 180; }
    100% { stroke-dasharray: 360 0; }
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ff8a80;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error p {
    margin: 0;
}

/* Logo visível em fundo escuro */
.img-logo-login {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.d-none {
    display: none;
}

@media (max-width: 640px) {
    .form-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .img-logo-login {
        max-width: 250px;
    }

    .input-group input {
        padding: 0.625rem 0.875rem;
    }

    .sign {
        padding: 0.75rem;
    }
}