.root {
    position: relative;
    width: 100%;
}

.container {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-8);
    align-self: stretch;
    padding: 10px 10px 10px var(--spacing-18);
    border-radius: var(--border-radius-xs);
    border: var(--border-width-sm) solid var(--border-alpha-black-10);
    background: var(--color-bg-fill-alpha-black-40);
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    width: 100%;
}

.container.primary {
    background: var(--color-bg-base-light);
    border: var(--border-width-sm) solid var(--border-color-light);
}

.container.primary input {
    color: var(--color-text-primary);
}

.container.primary input::placeholder {
    color: var(--color-text-primary);
    opacity: 0.8;
}

.container.primary-invert {
    background: var(--color-bg-fill-alpha-black-40);
    border: var(--border-width-sm) solid var(--border-color-alpha-black-10);
}

.container.primary-invert input {
    color: var(--color-text-primary-inverted);
}

.container.primary-invert input::placeholder {
    color: var(--color-text-primary-inverted);
    opacity: 0.8;
}

.errorTextContainer {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
    margin-top: 4px;
}

.errorIcon {
    width: 14px;
    height: 14px;
    color: var(--color-text-danger-light);
}

.container.focused {
    border-color: var(--border-alpha-black-10);
    box-shadow: 0 0 0 1px var(--color-powder-blue-500);
}

.container.active {
    border-color: var(--border-color-indigo);
    box-shadow: none;
}

.container.active input {
    outline: none;
    opacity: 1;
}

.container.primary.active input {
    color: var(--color-text-primary);
}

.container.primary-invert.active input {
    color: var(--color-text-primary-inverted);
}

.container.error {
    border: 1px solid var(--color-text-danger-light);
    box-shadow: 1px;
}

.container.disabled {
    background: var(--color-bg-fill-brand-disabled);
    border-color: var(--color-bg-fill-brand-disabled);
    opacity: 0.7;
    pointer-events: none;
}

.input_container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.input {
    font-family: var(--font-default);
    height: 40px;
    line-height: var(--line-height-sm);
    letter-spacing: var(--letter-spacing-negative-sm);
    opacity: 0.8;
    padding-top: 0;
    padding-bottom: 0;
}

.input:disabled {
    color: var(--color-text-secondary-disabled);
    background: transparent;
    cursor: not-allowed;
}

.container input {
    outline: none;
    width: 100%;
    background-color: transparent;
    border: none;
    font-size: var(--font-size-md);
    line-height: var(--line-height-sm);
}

.container.focused input {
    outline: none;
    opacity: 1;
}

.errorText {
    color: var(--color-text-danger-light);
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.label {
    color: var(--color-text-primary-inverted);
    font-family: var(--font-default);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-xs);
    opacity: 0.8;
    margin-bottom: var(--spacing-8);
    margin-left: 2px;
    transition: opacity 0.2s;
}

.label.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}
